diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/scons_tools/tool_firmware.py | 2 | ||||
-rw-r--r-- | build/scons_tools/tool_selectmcu.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/build/scons_tools/tool_firmware.py b/build/scons_tools/tool_firmware.py index b1ead1f..c7e8f34 100644 --- a/build/scons_tools/tool_firmware.py +++ b/build/scons_tools/tool_firmware.py @@ -3,7 +3,7 @@ from SCons.Script import * def Firmware(env, target, sources, **kwargs): objects = [env.Object(f) for f in Flatten([sources, env['LIB_SOURCES']])] firmware = env.Program(target, objects, **kwargs) - #env.Depends(firmware, env['LINK_SCRIPT']) # TODO + env.Depends(firmware, '${LAKS_PATH}/ld_scripts/${LINK_SCRIPT}') return firmware def exists(): diff --git a/build/scons_tools/tool_selectmcu.py b/build/scons_tools/tool_selectmcu.py index da4b38d..8d7029f 100644 --- a/build/scons_tools/tool_selectmcu.py +++ b/build/scons_tools/tool_selectmcu.py @@ -13,6 +13,8 @@ def SelectMCU(env, mcu, variant_dir = None): ) env.Replace( + PLATFORM_SPEC = spec, + CC = '${TOOLCHAIN}gcc', CXX = '${TOOLCHAIN}g++', AS = '${TOOLCHAIN}gcc', @@ -32,7 +34,7 @@ def SelectMCU(env, mcu, variant_dir = None): ) env.Replace( - LINK_SCRIPT = spec.get('ld_script'), + LINK_SCRIPT = 'generated.ld', ) env.Append( |