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

group = []

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

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

src = ['dma.c', 'dma_pool.c']

if GetDepend(['RT_DMA_PL330']):
    src += ['dma-pl330.c']

if GetDepend(['RT_DMA_DW_AXI_DMAC']):
    src += ['dma-dw-axi-dmac.c']

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

Return('group')