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 613B

123456789101112131415161718192021
  1. #
  2. # common-dependencies-post.py
  3. # Convenience script to add build flags for Marlin Enabled Features
  4. #
  5. Import("env")
  6. # Detect that 'vscode init' is running
  7. from SCons.Script import COMMAND_LINE_TARGETS
  8. if "idedata" in COMMAND_LINE_TARGETS:
  9. env.Exit(0)
  10. Import("projenv")
  11. def apply_board_build_flags():
  12. if not 'BOARD_CUSTOM_BUILD_FLAGS' in env['MARLIN_FEATURES']:
  13. return
  14. projenv.Append(CCFLAGS=env['MARLIN_FEATURES']['BOARD_CUSTOM_BUILD_FLAGS'].split())
  15. # We need to add the board build flags in a post script
  16. # so the platform build script doesn't overwrite the custom CCFLAGS
  17. apply_board_build_flags()