diff options
| author | zhouji <[email protected]> | 2021-05-01 19:15:37 +0800 |
|---|---|---|
| committer | zhouji <[email protected]> | 2021-05-14 16:08:31 +0800 |
| commit | 1523e4680d6b17a788314cb38386fd391daad819 (patch) | |
| tree | 5df06dc04c668319b4a551dbc055c55db44cf4fb /libcpu/arm/cortex-a/SConscript | |
| parent | 42ce237dc969fa3e6c5f891e87e925f42d5d38ea (diff) | |
[add] 添加gicv3中断控制器代码,更新menuconfig配置选项与utest的config.h
Diffstat (limited to 'libcpu/arm/cortex-a/SConscript')
| -rw-r--r-- | libcpu/arm/cortex-a/SConscript | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/libcpu/arm/cortex-a/SConscript b/libcpu/arm/cortex-a/SConscript index 28af7ba651..a9fe6f0bc9 100644 --- a/libcpu/arm/cortex-a/SConscript +++ b/libcpu/arm/cortex-a/SConscript @@ -5,9 +5,27 @@ from building import * Import('rtconfig') cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = Split(''' +cache.c +cpu.c +gtimer.c +mmu.c +pmu.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': src += Glob('*_rvds.S') @@ -18,6 +36,9 @@ if rtconfig.PLATFORM == 'gcc': 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') |
