25 lines
510 B
Python
25 lines
510 B
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_PHY']) and not GetDepend(['RT_USING_PHY_V2']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd, cwd + '/../include']
|
|
|
|
src = ['phy.c']
|
|
|
|
if GetDepend(['RT_USING_PHY_V2']):
|
|
src += ['general.c', 'mdio.c']
|
|
|
|
if GetDepend(['RT_USING_OFW']):
|
|
src += ['ofw.c']
|
|
|
|
if GetDepend(['RT_PHY_V2_REALTEK']):
|
|
src += ['phy-realtek.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|