2013-01-08 22:40:58 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2017-11-09 14:54:07 +08:00
|
|
|
src = []
|
2021-12-29 12:25:16 +08:00
|
|
|
depend = ['']
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_MTD_NOR']):
|
2017-11-09 14:54:07 +08:00
|
|
|
src += ['mtd_nor.c']
|
|
|
|
depend += ['RT_USING_MTD_NOR']
|
|
|
|
|
2013-01-08 22:40:58 +08:00
|
|
|
if GetDepend(['RT_USING_MTD_NAND']):
|
2017-11-09 14:54:07 +08:00
|
|
|
src += ['mtd_nand.c']
|
|
|
|
depend += ['RT_USING_MTD_NAND']
|
|
|
|
|
|
|
|
if src:
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = depend, CPPPATH = CPPPATH)
|
2013-01-08 22:40:58 +08:00
|
|
|
|
2019-06-27 15:43:53 +08:00
|
|
|
Return('group')
|