blob: e947eb2240c2e1704616a48d6839ec2402529b16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import os
from building import *
objs = []
cwd = GetCurrentDir()
# add general drivers
src = []
path = [cwd]
if GetDepend(['BSP_USING_SPI_FLASH']):
src += Glob('spi_flash_init.c')
if GetDepend(['BSP_USING_TF_CARD']):
src += Glob('drv_filesystem.c')
if GetDepend(['BSP_USING_RW007']):
src += Glob('drv_rw007.c')
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')
|