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-11-18 13:53:25 +08:00
committed by Rbb666
parent 6e78474998
commit 48fca91817
4 changed files with 3 additions and 11 deletions
+3 -1
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')