summaryrefslogtreecommitdiff
path: root/components/drivers/mtd/SConscript
blob: bc2bd54218e1f52c5b55918d14e63b428eb1e31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Import('RTT_ROOT')
Import('rtconfig')
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 src:
    group = DefineGroup('DeviceDrivers', src, depend = depend, CPPPATH = CPPPATH)

Return('group')