My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common-dependencies-post.py 556B

12345678910111213141516
  1. #
  2. # post:common-dependencies-post.py
  3. # Convenience script to add build flags for Marlin Enabled Features
  4. #
  5. import pioutil
  6. if pioutil.is_pio_build():
  7. Import("env", "projenv")
  8. def apply_board_build_flags():
  9. if not 'BOARD_CUSTOM_BUILD_FLAGS' in env['MARLIN_FEATURES']:
  10. return
  11. projenv.Append(CCFLAGS=env['MARLIN_FEATURES']['BOARD_CUSTOM_BUILD_FLAGS'].split())
  12. # We need to add the board build flags in a post script
  13. # so the platform build script doesn't overwrite the custom CCFLAGS
  14. apply_board_build_flags()