diff options
Diffstat (limited to 'components/drivers/phy/SConscript')
| -rw-r--r-- | components/drivers/phy/SConscript | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/components/drivers/phy/SConscript b/components/drivers/phy/SConscript index ec59a7aff6..ba227c72d4 100644 --- a/components/drivers/phy/SConscript +++ b/components/drivers/phy/SConscript @@ -1,10 +1,18 @@ from building import * cwd = GetCurrentDir() +CPPPATH = [cwd, cwd + '/../include'] src = Glob('*.c') if GetDepend('RT_USING_OFW') == False: SrcRemove(src, ['ofw.c']) -CPPPATH = [cwd,cwd + '/../include'] -group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_PHY'], CPPPATH = CPPPATH) + +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) Return('group') |
