1from building import * 2 3cwd = GetCurrentDir() 4CPPPATH = [cwd, cwd + '/../include'] 5src = Glob('*.c') 6if GetDepend('RT_USING_OFW') == False: 7 SrcRemove(src, ['ofw.c']) 8 9if GetDepend('RT_USING_PHY_V2') == False: 10 SrcRemove(src, ['general.c','mdio.c','ofw.c']) 11 12if GetDepend('RT_USING_PHY_V2') == False: 13 if GetDepend('RT_USING_PHY') == False: 14 SrcRemove(src, ['phy.c']) 15 16group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) 17 18Return('group') 19