summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-a/SConscript
blob: 64415b8f6e8300792665a82af7e075d54bbd8862 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# RT-Thread building script for component

from building import *

Import('rtconfig')

cwd     = GetCurrentDir()
src     = Split('''
cache.c
cpu.c
mmu.c
stack.c
''')
CPPPATH = [cwd]

if GetDepend('RT_USING_GIC_V2'):
    src += ['interrupt.c']
    src += ['gic.c']
    src += ['trap.c']

if GetDepend('RT_USING_GIC_V3'):
    src += ['interrupt.c']
    src += ['gicv3.c']
    src += ['trap.c']

if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
    src += Glob('*_rvds.S')

if rtconfig.PLATFORM == 'gcc':
    src += Glob('*_init.S')
    src += Glob('*_gcc.S')

if rtconfig.PLATFORM == 'iar':
    src += Glob('*_iar.S')

if rtconfig.PLATFORM == 'iar':
    src += Glob('*_iar.S')

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

Return('group')