4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-15 13:09:21 +08:00
yungchi@cs.nctu.edu.tw c6604c7563 Move driver files and update it SConscript
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2088 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-16 17:58:44 +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')