mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-24 01:09:47 +08:00
24 lines
584 B
Python
24 lines
584 B
Python
import os
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
# add the general drivers.
|
|
src = Glob('board.c')
|
|
src += Glob('CubeMX_Config/Src/stm32h7xx_hal_msp.c')
|
|
|
|
path = [cwd]
|
|
path += [cwd + '/CubeMX_Config/Inc']
|
|
|
|
# STM32H743xx || STM32H750xx || STM32F753xx
|
|
# You can select chips from the list above
|
|
CPPDEFINES = ['STM32H743xx']
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
|
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')
|