blob: e03f26fb79051d8d9040d9fa7fe7ea97f1f6597e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
from building import *
cwd = GetCurrentDir()
src = []
depend = ['']
CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_MTD_NOR']):
src += ['mtd_nor.c']
depend += ['RT_USING_MTD_NOR']
if GetDepend(['RT_USING_MTD_NAND']):
src += ['mtd_nand.c']
depend += ['RT_USING_MTD_NAND']
if GetDepend(['RT_USING_MTD_NOR_CFI']):
src += ['mtd-cfi.c']
if GetDepend(['RT_USING_MTD_NOR_SPI']):
src += ['mtd-spi-nor.c']
if src:
group = DefineGroup('DeviceDrivers', src, depend = depend, CPPPATH = CPPPATH)
Return('group')
|