add ofw api to of net,driver writer can use this api get phy modes or get mac address

This commit is contained in:
zhujiale 2024-09-30 10:35:36 +08:00 committed by Rbb666
parent 6e78474998
commit 48fca91817
4 changed files with 3 additions and 11 deletions

View File

@ -2,7 +2,9 @@ from building import *
cwd = GetCurrentDir()
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)
Return('group')

View File

@ -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')