1Import('RTT_ROOT')
2from building import *
3
4cwd = GetCurrentDir()
5src = Split("""
6dev_block.c
7dev_mmcsd_core.c
8dev_sd.c
9dev_sdio.c
10dev_mmc.c
11""")
12
13# The set of source files associated with this SConscript file.
14path = [cwd + '/../include' , cwd + '/sdhci/include']
15
16if GetDepend('RT_USING_SDHCI'):
17    src += [os.path.join('sdhci', 'sdhci.c')]
18    src += [os.path.join('sdhci', 'fit-mmc.c')]
19    src += [os.path.join('sdhci', 'sdhci-platform.c')]
20
21group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SDIO'], CPPPATH = path)
22
23Return('group')
24