2011-11-29 16:06:46 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
import copy
|
|
|
|
|
|
|
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
|
|
|
src = Glob('*.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
# remove no need file.
|
|
|
|
if GetDepend('RT_USING_LWIP') == False:
|
2011-12-10 21:15:22 +08:00
|
|
|
SrcRemove(src, ['luminaryif.c']) # need remove file list.
|
2011-11-29 16:06:46 +08:00
|
|
|
|
|
|
|
if GetDepend('RT_USING_DFS') == False:
|
2011-12-10 21:15:22 +08:00
|
|
|
SrcRemove(src, ['sdcard.c']) # need remove file list.
|
2011-11-29 16:06:46 +08:00
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|