mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 13:09:21 +08:00
7dc3ec9b75
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1831 bbd45198-f89e-11dd-88c7-29a3b14d5316
20 lines
488 B
Python
20 lines
488 B
Python
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:
|
|
SrcRemove(src, ['luminaryif.c']) # need remove file list.
|
|
|
|
if GetDepend('RT_USING_DFS') == False:
|
|
SrcRemove(src, ['sdcard.c']) # need remove file list.
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|