2011-10-14 17:18:11 +08:00
|
|
|
import copy
|
2011-10-14 01:15:32 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
2011-10-14 17:18:11 +08:00
|
|
|
|
|
|
|
# remove no need file.
|
|
|
|
if GetDepend('RT_USING_LWIP') == False:
|
|
|
|
src_need_remove = ['emac.c'] # need remove file list.
|
2011-12-23 11:27:46 +08:00
|
|
|
SrcRemove(src, src_need_remove)
|
2011-10-14 17:18:11 +08:00
|
|
|
|
2011-10-14 01:15:32 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|