diff options
Diffstat (limited to 'bsp/stm32/stm32wl55-st-nucleo')
| -rw-r--r-- | bsp/stm32/stm32wl55-st-nucleo/SConstruct | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/bsp/stm32/stm32wl55-st-nucleo/SConstruct b/bsp/stm32/stm32wl55-st-nucleo/SConstruct index 0ba7f251a0..f3769ce5b6 100644 --- a/bsp/stm32/stm32wl55-st-nucleo/SConstruct +++ b/bsp/stm32/stm32wl55-st-nucleo/SConstruct @@ -17,7 +17,6 @@ except: TARGET = 'rt-thread.' + rtconfig.TARGET_EXT -DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, @@ -41,9 +40,6 @@ if os.path.exists(SDK_ROOT + '/libraries'): else: libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries' -from utils import _make_path_relative -libraries_path_prefix = _make_path_relative(os.path.abspath('./'), libraries_path_prefix) - SDK_LIB = libraries_path_prefix Export('SDK_LIB') @@ -53,19 +49,11 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) stm32_library = 'STM32WLxx_HAL' rtconfig.BSP_LIBRARY_TYPE = stm32_library -bsp_vdir = 'build' - # include libraries -objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript'), - variant_dir=bsp_vdir + '/libraries/'+ stm32_library, duplicate=0)) +objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript'))) # include drivers -objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript'), - variant_dir=bsp_vdir + '/libraries/HAL_Drivers', duplicate=0)) - -bsp_port_script = os.path.join(os.getcwd(), 'board', 'ports', 'SConscript') -if os.path.isfile(bsp_port_script): - objs.extend(SConscript(bsp_port_script, variant_dir=bsp_vdir + '/board/ports', duplicate=0)) +objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript'))) # make a building DoBuilding(TARGET, objs) |
