diff options
| author | 沐攸 <[email protected]> | 2025-03-24 21:00:05 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-03-24 21:00:05 +0800 |
| commit | 88a44749dfcd57fbf2349fd13e2daafedd6f0e72 (patch) | |
| tree | d9a53a791d0caa0d55c2c4af7f6b38096fc125c8 /bsp/stm32/stm32f429-st-disco/board/SConscript | |
| parent | 5b88c8c207268cb74d5cc69654787d2c26c2f1a9 (diff) | |
bsp: Separate STM32F4 HAL drivers -2 (#10141)
* bsp: Separate STM32F4 HAL drivers
* f4_sdk
---------
Co-authored-by: Supper Thomas <[email protected]>
Diffstat (limited to 'bsp/stm32/stm32f429-st-disco/board/SConscript')
| -rw-r--r-- | bsp/stm32/stm32f429-st-disco/board/SConscript | 48 |
1 files changed, 9 insertions, 39 deletions
diff --git a/bsp/stm32/stm32f429-st-disco/board/SConscript b/bsp/stm32/stm32f429-st-disco/board/SConscript index a3218f6943..df8b106fd2 100644 --- a/bsp/stm32/stm32f429-st-disco/board/SConscript +++ b/bsp/stm32/stm32f429-st-disco/board/SConscript @@ -1,9 +1,6 @@ import os -import rtconfig from building import * -Import('SDK_LIB') - cwd = GetCurrentDir() # add general drivers @@ -11,46 +8,19 @@ src = Split(''' board.c CubeMX_Config/Src/stm32f4xx_hal_msp.c ''') - -if GetDepend(['BSP_USING_QSPI_FLASH']): - src += ['ports/drv_qspi_flash.c'] - -if GetDepend(['RT_USING_FAL']): - src += ['ports/qspi_mnt.c'] - -if GetDepend(['BSP_USING_TOUCH']): - src += Glob('ports/touch/*.c') - -if GetDepend(['BSP_USING_SDCARD']): - src += ['ports/drv_sdcard.c'] - -if GetDepend(['BSP_USING_QSPI']): - src += ['ports/drv_qspi_flash.c'] - -if GetDepend(['BSP_USING_LCD']): - src += ['ports/ili9341.c'] - path = [cwd] -path += [cwd + '/CubeMX_Config/Inc'] -path += [cwd + '/ports'] - -startup_path_prefix = SDK_LIB +path += [os.path.join(cwd, 'CubeMX_Config', 'Inc')] -if rtconfig.PLATFORM in ['gcc']: - src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s'] -elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s'] -elif rtconfig.PLATFORM in ['iccarm']: - src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f429xx.s'] -# STM32F405xx) || STM32F415xx) || STM32F407xx) || STM32F417xx) -# STM32F427xx) || STM32F437xx) || STM32F429xx) || STM32F439xx) -# STM32F401xC) || STM32F401xE) || STM32F410Tx) || STM32F410Cx) -# STM32F410Rx) || STM32F411xE) || STM32F446xx) || STM32F469xx) -# STM32F479xx) || STM32F412Cx) || STM32F412Rx) || STM32F412Vx) -# STM32F412Zx) || STM32F413xx) || STM32F423xx) -# You can select chips from the list above CPPDEFINES = ['STM32F429xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) +# if os.path.isfile(os.path.join(cwd, "ports", 'SConscript')): +# group = group + SConscript(os.path.join("ports", 'SConscript')) + +list = os.listdir(cwd) +for item in list: + if os.path.isfile(os.path.join(cwd, item, 'SConscript')): + group = group + SConscript(os.path.join(item, 'SConscript')) + Return('group') |
