mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-25 18:53:08 +08:00
19 lines
377 B
Python
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')
|