diff options
Diffstat (limited to 'components/mm/SConscript')
| -rw-r--r-- | components/mm/SConscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/mm/SConscript b/components/mm/SConscript index 5b259fee10..6bc146c3c5 100644 --- a/components/mm/SConscript +++ b/components/mm/SConscript @@ -2,9 +2,9 @@ import os from building import * group = [] +cwd = GetCurrentDir() if GetDepend('ARCH_ARM_CORTEX_A') or GetDepend('ARCH_ARMV8') or GetDepend('ARCH_RISCV64'): - cwd = GetCurrentDir() src = Glob('*.c') + Glob('*_gcc.S') if not GetDepend('RT_USING_MEMBLOCK'): SrcRemove(src, ['mm_memblock.c']) @@ -12,6 +12,8 @@ if GetDepend('ARCH_ARM_CORTEX_A') or GetDepend('ARCH_ARMV8') or GetDepend('ARCH_ CPPPATH = [cwd] group = DefineGroup('Memm', src, depend = ['ARCH_MM_MMU'], CPPPATH = CPPPATH) +elif GetDepend('RT_USING_OFW'): + group = DefineGroup('Memm', ['ioremap-nommu.c'], depend = ['RT_USING_OFW'], CPPPATH = [cwd]) group = group + SConscript(os.path.join('utest', 'SConscript')) |
