1
mirror of https://github.com/valentineus/kp3s-lgvl.git synced 2025-04-28 01:31:23 +03:00
kp3s-lgvl/buildroot/share/PlatformIO/scripts/common-dependencies-post.py
Georgiy Bondarenko e8701195e6 Initial commit
2021-03-04 22:54:23 +05:00

17 lines
473 B
Python

#
# common-dependencies-post.py
# Convenience script to add build flags for Marlin Enabled Features
#
Import("env")
Import("projenv")
def apply_board_build_flags():
if not 'BOARD_CUSTOM_BUILD_FLAGS' in env['MARLIN_FEATURES']:
return
projenv.Append(CCFLAGS=env['MARLIN_FEATURES']['BOARD_CUSTOM_BUILD_FLAGS'].split())
# We need to add the board build flags in a post script
# so the platform build script doesn't overwrite the custom CCFLAGS
apply_board_build_flags()