[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
This commit is contained in:
Shell 2023-01-11 16:24:51 +08:00 committed by GitHub
parent 168e12501d
commit 12189d533a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)