Files
rt-thread/components/drivers/ethernet/synopsys/SConscript
T
GuEe-GUI c3e1dd7946 [dm][ethernet] add MACB and DWMAC ethernet support
They support PTP, too.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 09:43:10 +08:00

19 lines
377 B
Python

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')