add ofw api to of net,driver writer can use this api get phy modes or get mac address
This commit is contained in:
parent
6e78474998
commit
48fca91817
|
@ -2,7 +2,9 @@ from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd + '/../include']
|
if GetDepend('RT_USING_OFW') == False:
|
||||||
|
SrcRemove(src, ['ofw.c'])
|
||||||
|
CPPPATH = [cwd,cwd + '/../include']
|
||||||
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_PHY'], CPPPATH = CPPPATH)
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_PHY'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
from building import *
|
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
|
||||||
src = Glob('*.c')
|
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
|
||||||
|
|
||||||
group = DefineGroup('ofw', src, depend = ['RT_USING_OFW'], CPPPATH = CPPPATH)
|
|
||||||
|
|
||||||
Return('group')
|
|
Loading…
Reference in New Issue