File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
bsp/stm32/stm32f769-st-disco Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,27 @@ if rtconfig.PLATFORM == 'iar':
3434Export ('RTT_ROOT' )
3535Export ('rtconfig' )
3636
37+ SDK_ROOT = os .path .abspath ('./' )
38+
39+ if os .path .exists (SDK_ROOT + '/libraries' ):
40+ libraries_path_prefix = SDK_ROOT + '/libraries'
41+ else :
42+ libraries_path_prefix = os .path .dirname (SDK_ROOT ) + '/libraries'
43+
44+ SDK_LIB = libraries_path_prefix
45+ Export ('SDK_LIB' )
46+
3747# prepare building environment
3848objs = PrepareBuilding (env , RTT_ROOT , has_libcpu = False )
3949
4050stm32_library = 'STM32F7xx_HAL'
4151rtconfig .BSP_LIBRARY_TYPE = stm32_library
4252
43- SDK_ROOT = os .path .abspath ('./' )
53+ # include libraries
54+ objs .extend (SConscript (os .path .join (libraries_path_prefix , stm32_library , 'SConscript' )))
4455
4556# include drivers
46- objs .extend (SConscript (os .path .dirname (SDK_ROOT ) + '/libraries/STM32F7xx_HAL/SConscript' ))
47-
48- # include libraries
49- objs .extend (SConscript (os .path .dirname (SDK_ROOT ) + '/libraries/HAL_Drivers/SConscript' ))
57+ objs .extend (SConscript (os .path .join (libraries_path_prefix , 'HAL_Drivers' , 'SConscript' )))
5058
5159# make a building
5260DoBuilding (TARGET , objs )
You can’t perform that action at this time.
0 commit comments