dzzxzz@gmail.com 6c806253bd fixed a compiling error using gcc in linux system
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2201 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-04 02:02:12 +00:00

25 lines
587 B
Python

Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'Drivers')
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')