don't make a empty directory "DeviceDrivers" in IAR project while RT_USING_MTD_NOR or RT_USING_MTD_NAND was not defined in rtconfig.h

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2169 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
dzzxzz@gmail.com 2012-06-18 02:54:01 +00:00
parent fe5b403ee2
commit 0fde4d778a
1 changed files with 5 additions and 3 deletions

View File

@ -9,12 +9,14 @@ mtd_nor = ['mtd_nor.c']
mtd_nand = ['mtd_nand.c'] mtd_nand = ['mtd_nand.c']
CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_MTD_NOR']): if GetDepend(['RT_USING_MTD_NOR']):
src = src + mtd_nor src = src + mtd_nor
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_MTD_NOR'], CPPPATH = CPPPATH)
if GetDepend(['RT_USING_MTD_NAND']): if GetDepend(['RT_USING_MTD_NAND']):
src = src + mtd_nand src = src + mtd_nand
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_MTD_NAND'], CPPPATH = CPPPATH)
CPPPATH = [cwd + '/../include']
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group') Return('group')