summaryrefslogtreecommitdiff
path: root/components/drivers/ethernet/synopsys/SConscript
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2026-07-22 22:09:03 +0800
committerRbb666 <[email protected]>2026-08-06 09:43:10 +0800
commitc3e1dd794673f478b93252bf04425a2e30eb8ee2 (patch)
tree207401bf7db6d3e119652974506202c32f82ac69 /components/drivers/ethernet/synopsys/SConscript
parent84da9b93933ceb08e9407185294a96aa4ab5d580 (diff)
[dm][ethernet] add MACB and DWMAC ethernet support
They support PTP, too. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/ethernet/synopsys/SConscript')
-rw-r--r--components/drivers/ethernet/synopsys/SConscript18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/drivers/ethernet/synopsys/SConscript b/components/drivers/ethernet/synopsys/SConscript
new file mode 100644
index 0000000000..af7d646daf
--- /dev/null
+++ b/components/drivers/ethernet/synopsys/SConscript
@@ -0,0 +1,18 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_ETHERNET_DWMAC']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../../include', cwd + '/../../phy']
+
+src = ['dwmac.c', 'dwmac-platform.c']
+
+if GetDepend(['RT_ETHERNET_DWMAC_PTP']):
+ src += ['dwmac_ptp.c']
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')