Skip to content

Commit 48fca91

Browse files
zhuzhuzhusRbb666
authored andcommitted
add ofw api to of net,driver writer can use this api get phy modes or get mac address
1 parent 6e78474 commit 48fca91

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

components/drivers/phy/SConscript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ from building import *
22

33
cwd = GetCurrentDir()
44
src = Glob('*.c')
5-
CPPPATH = [cwd + '/../include']
5+
if GetDepend('RT_USING_OFW') == False:
6+
SrcRemove(src, ['ofw.c'])
7+
CPPPATH = [cwd,cwd + '/../include']
68
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_PHY'], CPPPATH = CPPPATH)
79

810
Return('group')

components/net/ofw/SConscript

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)