1import os
2from building import *
3
4objs = []
5cwd  = GetCurrentDir()
6
7# add general drivers
8src = []
9path =  [cwd]
10
11if GetDepend(['BSP_USING_QSPI_FLASH']):
12    src += Glob('drv_qspi_flash.c')
13
14if GetDepend(['RT_USING_FAL']):
15    src += Glob('qspi_mnt.c')
16
17if GetDepend(['BSP_USING_LCD_OTM8009A']):
18    src += Glob('drv_otm8009a.c')
19
20if GetDepend(['BSP_USING_SDCARD']):
21    src += Glob('drv_sdcard.c')
22
23
24CPPDEFINES = ['STM32F469xx']
25group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
26
27list = os.listdir(cwd)
28for item in list:
29    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
30        group = group + SConscript(os.path.join(item, 'SConscript'))
31
32Return('group')
33