diff options
| author | zms123456 <[email protected]> | 2023-10-14 14:10:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-14 14:10:57 +0800 |
| commit | a39da9cb596b9dc0b0d0265fa67d5db8a2f66f09 (patch) | |
| tree | 1225c904c74778ccaed41e9ea6b5fee330703720 /components/mm/SConscript | |
| parent | 1e7add54d44146a0245fc89f0a55ce27e772f2d3 (diff) | |
[components][mm]添加预留内存支持 (#8025)
Diffstat (limited to 'components/mm/SConscript')
| -rw-r--r-- | components/mm/SConscript | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/mm/SConscript b/components/mm/SConscript index 02273a34b0..e42fa9f0c8 100644 --- a/components/mm/SConscript +++ b/components/mm/SConscript @@ -1,11 +1,14 @@ import os from building import * -objs = [] +objs = [] +src = [] if GetDepend('ARCH_ARM_CORTEX_A') or GetDepend('ARCH_ARMV8') or GetDepend('ARCH_RISCV64'): cwd = GetCurrentDir() - src = Glob('*.c') + Glob('*_gcc.S') + src += ['avl_adpt.c', 'ioremap.c', 'mm_aspace.c', 'mm_fault.c', 'mm_kmem.c', 'mm_object.c', 'mm_page.c'] + if GetDepend('RT_USING_MEMBLOCK'): + src += ['mm_memblock.c'] CPPPATH = [cwd] group = DefineGroup('mm', src, depend = ['ARCH_MM_MMU'], CPPPATH = CPPPATH) |
