blob: 2bf716b8a7e4c2b1c3f18ec8d857094d9154c501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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')
|