2022-01-10 16:20:39 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
2022-01-10 17:10:14 +08:00
|
|
|
depend = []
|
2022-01-10 16:20:39 +08:00
|
|
|
|
|
|
|
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')
|