mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-20 20:03:31 +08:00
f0af6ef809
There is no next-level directory under the components/mm/ directory. Do not need to enter the next-level directory to process the SConscript file. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
17 lines
408 B
Python
17 lines
408 B
Python
import os
|
|
from building import *
|
|
|
|
group = []
|
|
|
|
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'])
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = DefineGroup('mm', src, depend = ['ARCH_MM_MMU'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|