summaryrefslogtreecommitdiff
path: root/components/drivers/sdio/host/SConscript
blob: 242de85644c1db5b40c02bf1ad8e65f96b9eaf91 (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 = []

if not GetDepend(['RT_USING_SDIO']) and not GetDepend(['RT_USING_DM']):
    Return('group')

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

src = []

if GetDepend(['RT_SDIO_SDHCI_PCI']):
    src += ['sdhci-pci.c']

if GetDepend(['RT_SDIO_DW_MMC']):
    src += ['sdio-dw.c', 'sdio-dw-platform.c']

    if GetDepend(['RT_SDIO_DW_MMC_PCI']):
            src += ['sdio-dw-pci.c']

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

Return('group')