summaryrefslogtreecommitdiff
path: root/components/drivers/serial/device/8250/SConscript
blob: 7d24e6df97acfb2b6cb431353806fc04db5f6f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from building import *

group   = []

if not GetDepend(['RT_SERIAL_8250']):
    Return('group')

cwd     = GetCurrentDir()
CPPPATH = [cwd + '/../../include']

src     = ['core.c', 'early.c']

if GetDepend(['RT_SERIAL_8250_DW']):
    src += ['8250-dw.c']

if GetDepend(['RT_USING_OFW', 'RT_USING_RESET']):
    src += ['8250-ofw.c']

if GetDepend(['RT_SERIAL_8250_PCI']):
    src += ['8250-pci.c']

group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')