diff options
| author | Rbb666 <[email protected]> | 2026-07-31 15:07:36 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-08-12 12:54:50 +0800 |
| commit | 6b4f34204ed2da80b7c37b912612c65cebc30ce3 (patch) | |
| tree | 9451c2d5b1b08de290ecc4eddb5a3aed3487e273 /components/mm/SConscript | |
| parent | 9a12b2a7b991df7b72a7f6d0d9cc74a3ba5f7c93 (diff) | |
feat(dm): support OFW on Cortex-M targets
Add the ARM NVIC PIC driver, no-MMU I/O mapping, built-in FDT support, and Cortex-M CPU hooks required by the native RT-Thread device model.
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')) |
