summaryrefslogtreecommitdiff
path: root/bsp/rockchip/dm/pci/SConscript
blob: bb6a9366ea23c78b78dc26c0b77fec536fc92315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from building import *

group = []

cwd = GetCurrentDir()
CPPPATH = [cwd + '/../include', cwd + '/../../../../components/drivers/pci', cwd + '/../../../../components/drivers/pci/host/dw']

src = []

if GetDepend(['RT_PCIE_ROCKCHIP']):
    src += ['pcie-rockchip-host.c']

if GetDepend(['RT_PCIE_ROCKCHIP_EP']):
    src += ['pcie-rockchip-ep.c']

if GetDepend(['RT_PCIE_ROCKCHIP']) or GetDepend(['RT_PCIE_ROCKCHIP_EP']):
    src += ['pcie-rockchip.c']

if GetDepend(['RT_PCI_DW_ROCKCHIP']):
    src += ['pcie-dw-rockchip.c']

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

Return('group')