summaryrefslogtreecommitdiff
path: root/components/drivers/ethernet/synopsys/SConscript
diff options
context:
space:
mode:
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')