2017-08-23 15:46:51 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2018-12-24 18:49:00 +08:00
|
|
|
if GetDepend('RT_USING_LWIP') == False:
|
2023-01-09 10:14:23 +08:00
|
|
|
SrcRemove(src, 'mii.c')
|
|
|
|
SrcRemove(src, 'synopGMAC.c')
|
|
|
|
SrcRemove(src, 'synopGMAC_Dev.c')
|
|
|
|
SrcRemove(src, 'synopGMAC_plat.c')
|
2018-12-24 18:49:00 +08:00
|
|
|
|
2017-08-23 15:46:51 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
|
|
|
|
Return('group')
|