2020-10-12 18:15:01 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2024-11-20 10:34:03 +08:00
|
|
|
CPPPATH = [cwd, cwd + '/../include']
|
2023-01-08 21:14:23 -05:00
|
|
|
src = Glob('*.c')
|
2024-09-30 10:35:36 +08:00
|
|
|
if GetDepend('RT_USING_OFW') == False:
|
|
|
|
SrcRemove(src, ['ofw.c'])
|
2024-11-20 10:34:03 +08:00
|
|
|
|
|
|
|
if GetDepend('RT_USING_PHY_V2') == False:
|
|
|
|
SrcRemove(src, ['general.c','mdio.c','ofw.c'])
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_PHY_V2') == False:
|
|
|
|
if GetDepend('RT_USING_PHY') == False:
|
|
|
|
SrcRemove(src, ['phy.c'])
|
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
2020-10-12 18:15:01 +08:00
|
|
|
|
|
|
|
Return('group')
|