From 9fa557e5439ba42c12e469335443562891e2ca76 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 3 May 2023 22:45:17 +0200 Subject: build: Allow other tools to add to paths. --- build/scons_tools/tool_selectmcu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build/scons_tools') diff --git a/build/scons_tools/tool_selectmcu.py b/build/scons_tools/tool_selectmcu.py index 38b154d..26f018e 100644 --- a/build/scons_tools/tool_selectmcu.py +++ b/build/scons_tools/tool_selectmcu.py @@ -46,9 +46,6 @@ def SelectMCU(env, mcu, variant_dir = None, patch = None): ASFLAGS = Split('-c -x assembler-with-cpp'), LINKFLAGS = Split('-Wall -nostartfiles -Wl,-T${LINK_SCRIPT} -Wl,--gc-sections'), - CPPPATH = ['${LAKS_PATH}'], - LIBPATH = ['${LAKS_PATH}/ld_scripts'], - LIB_SOURCES = [], CPPDEFINES = ['LAKS'], ) @@ -61,6 +58,9 @@ def SelectMCU(env, mcu, variant_dir = None, patch = None): CCFLAGS = spec.get('cflags', []), LINKFLAGS = spec.get('cflags', []), CPPDEFINES = spec.get('define', []), + + CPPPATH = ['${LAKS_PATH}'], + LIBPATH = ['${LAKS_PATH}/ld_scripts'], ) env.SConscript('${LAKS_PATH}/SConscript', variant_dir = variant_dir, exports = 'env') -- cgit v1.2.3