summaryrefslogtreecommitdiff
path: root/components/mm/SConscript
diff options
context:
space:
mode:
authorShell <[email protected]>2023-01-11 16:24:51 +0800
committerGitHub <[email protected]>2023-01-11 16:24:51 +0800
commit12189d533a538e4b7f936314ab28c2625c0cb860 (patch)
treec78f6dea2be7c5dc8aaed78205f48af0a352dd56 /components/mm/SConscript
parent168e12501dbf3a9a2fc3f470942dc919cd027021 (diff)
[rt-smart/mm] enable mm on armv7, armv8, rv64 only (#6834)
* [mm] enable mm on armv7, armv8, rv64 only * [mm] config on ARCH_MM_MMU
Diffstat (limited to 'components/mm/SConscript')
-rw-r--r--components/mm/SConscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/mm/SConscript b/components/mm/SConscript
index aee18c27c8..02273a34b0 100644
--- a/components/mm/SConscript
+++ b/components/mm/SConscript
@@ -3,12 +3,12 @@ from building import *
objs = []
-if GetDepend('ARCH_MM_MMU'):
+if GetDepend('ARCH_ARM_CORTEX_A') or GetDepend('ARCH_ARMV8') or GetDepend('ARCH_RISCV64'):
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*_gcc.S')
CPPPATH = [cwd]
- group = DefineGroup('mm', src, depend = [''], CPPPATH = CPPPATH)
+ group = DefineGroup('mm', src, depend = ['ARCH_MM_MMU'], CPPPATH = CPPPATH)
objs = [group]
list = os.listdir(cwd)