My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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()