summaryrefslogtreecommitdiff
path: root/components/drivers/ethernet/synopsys/SConscript
blob: af7d646daf10ff2c0c55a1580bae3ea639e6da1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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')