2012-04-17 01:58:44 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
2012-07-04 10:02:12 +08:00
|
|
|
cwd = os.path.join(str(Dir('#')), 'Drivers')
|
2012-04-17 01:58:44 +08:00
|
|
|
src = Glob('*.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
# remove no need file.
|
|
|
|
if GetDepend('RT_USING_LWIP') == False:
|
|
|
|
SrcRemove(src, 'stm32f2_eth.c')
|
|
|
|
if GetDepend('RT_USING_DFS') == False:
|
|
|
|
SrcRemove(src, 'sdio_sd.c')
|
|
|
|
|
|
|
|
#remove other no use files
|
|
|
|
#SrcRemove(src, 'FM25Lx.c')
|
|
|
|
#SrcRemove(src, '24LCxx.c')
|
|
|
|
|
|
|
|
#MDK platform retarget. Not yet tested
|
|
|
|
SrcRemove(src, 'stdio_Retarget.c')
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|