mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-01 15:55:34 +08:00
[update] stm32/stm32f767-st-nucleo/SConstruct
This commit is contained in:
parent
d9a9b90b33
commit
abde5170dd
@ -34,19 +34,27 @@ if rtconfig.PLATFORM == 'iar':
|
|||||||
Export('RTT_ROOT')
|
Export('RTT_ROOT')
|
||||||
Export('rtconfig')
|
Export('rtconfig')
|
||||||
|
|
||||||
|
SDK_ROOT = os.path.abspath('./')
|
||||||
|
|
||||||
|
if os.path.exists(SDK_ROOT + '/libraries'):
|
||||||
|
libraries_path_prefix = SDK_ROOT + '/libraries'
|
||||||
|
else:
|
||||||
|
libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
|
||||||
|
|
||||||
|
SDK_LIB = libraries_path_prefix
|
||||||
|
Export('SDK_LIB')
|
||||||
|
|
||||||
# prepare building environment
|
# prepare building environment
|
||||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||||
|
|
||||||
stm32_library = 'STM32F7xx_HAL'
|
stm32_library = 'STM32F7xx_HAL'
|
||||||
rtconfig.BSP_LIBRARY_TYPE = stm32_library
|
rtconfig.BSP_LIBRARY_TYPE = stm32_library
|
||||||
|
|
||||||
SDK_ROOT = os.path.abspath('./')
|
# include libraries
|
||||||
|
objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
|
||||||
|
|
||||||
# include drivers
|
# include drivers
|
||||||
objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F7xx_HAL/SConscript'))
|
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
|
||||||
|
|
||||||
# include libraries
|
|
||||||
objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
|
|
||||||
|
|
||||||
# make a building
|
# make a building
|
||||||
DoBuilding(TARGET, objs)
|
DoBuilding(TARGET, objs)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import rtconfig
|
import rtconfig
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user