diff options
| author | geniusgogo <[email protected]> | 2023-10-17 13:07:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-17 13:07:59 +0800 |
| commit | ecd29fda6005ef19c625f194f9311259ba907a78 (patch) | |
| tree | d0e272f5783ac4a3048238e14a37bcd88b5dc3e6 /components/mm/SConscript | |
| parent | 7d64cdcf58969b1b2b7e9cfb3aac9e46cb456ae3 (diff) | |
Sync dfs lwp (#8123)
Diffstat (limited to 'components/mm/SConscript')
| -rw-r--r-- | components/mm/SConscript | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/mm/SConscript b/components/mm/SConscript index e42fa9f0c8..9c76dd8b41 100644 --- a/components/mm/SConscript +++ b/components/mm/SConscript @@ -1,14 +1,14 @@ import os from building import * -objs = [] -src = [] +objs = [] if GetDepend('ARCH_ARM_CORTEX_A') or GetDepend('ARCH_ARMV8') or GetDepend('ARCH_RISCV64'): cwd = GetCurrentDir() - 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'] + src = Glob('*.c') + Glob('*_gcc.S') + if not GetDepend('RT_USING_MEMBLOCK'): + SrcRemove(src, ['mm_memblock.c']) + CPPPATH = [cwd] group = DefineGroup('mm', src, depend = ['ARCH_MM_MMU'], CPPPATH = CPPPATH) |
