diff options
| author | zhujiale <[email protected]> | 2024-09-30 10:35:36 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-11-18 13:53:25 +0800 |
| commit | 48fca91817db915f34a1c57e782dcf4b808518c4 (patch) | |
| tree | d473a404afcc2858a457bcc353cfcd2cb02a6e6f /components | |
| parent | 6e7847499871ca518a66f26041b5ec93fa42c8f2 (diff) | |
add ofw api to of net,driver writer can use this api get phy modes or get mac address
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/phy/SConscript | 4 | ||||
| -rw-r--r-- | components/drivers/phy/ofw.c (renamed from components/net/ofw/ofw.c) | 0 | ||||
| -rw-r--r-- | components/drivers/phy/ofw.h (renamed from components/net/ofw/ofw.h) | 0 | ||||
| -rw-r--r-- | components/net/ofw/SConscript | 10 |
4 files changed, 3 insertions, 11 deletions
diff --git a/components/drivers/phy/SConscript b/components/drivers/phy/SConscript index 5b6effc98a..ec59a7aff6 100644 --- a/components/drivers/phy/SConscript +++ b/components/drivers/phy/SConscript @@ -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') diff --git a/components/net/ofw/ofw.c b/components/drivers/phy/ofw.c index 189695c7ea..189695c7ea 100644 --- a/components/net/ofw/ofw.c +++ b/components/drivers/phy/ofw.c diff --git a/components/net/ofw/ofw.h b/components/drivers/phy/ofw.h index b2af43e800..b2af43e800 100644 --- a/components/net/ofw/ofw.h +++ b/components/drivers/phy/ofw.h diff --git a/components/net/ofw/SConscript b/components/net/ofw/SConscript deleted file mode 100644 index 6142f31ab3..0000000000 --- a/components/net/ofw/SConscript +++ /dev/null @@ -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') |
