1234567891011121314151617181920212223242526272829 |
- import os
- from building import *
- objs = []
- cwd = GetCurrentDir()
- # add general drivers
- src = []
- path = [cwd]
- if GetDepend(['BSP_USING_ETH']):
- src += Glob('w5500_device.c')
- if GetDepend(['BSP_USING_WIFI_OR_GPRS']):
- src += Glob('esp02_device.c')
-
- if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
- src += Glob('on_chip_flash_init.c')
- CPPDEFINES = ['STM32F103xE']
- group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
- 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')
|