Files
rt-thread/components/drivers/ethernet/cadence/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

22 lines
429 B
Python

from building import *
group = []
if not GetDepend(['RT_ETHERNET_CADENCE']):
Return('group')
cwd = GetCurrentDir()
CPPPATH = [cwd + '/../../include', cwd + '/../../phy']
src = ['macb.c']
if GetDepend(['RT_ETHERNET_CADENCE_PCI']):
src += ['macb_pci.c']
if GetDepend(['RT_ETHERNET_CADENCE_PTP']):
src += ['macb_ptp.c']
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')