rt-thread/components/drivers/mtd/SConscript

23 lines
523 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = []
mtd_nor = ['mtd_nor.c']
mtd_nand = ['mtd_nand.c']
CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_MTD_NOR']):
src = src + mtd_nor
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_MTD_NOR'], CPPPATH = CPPPATH)
if GetDepend(['RT_USING_MTD_NAND']):
src = src + mtd_nand
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_MTD_NAND'], CPPPATH = CPPPATH)
Return('group')