summaryrefslogtreecommitdiff
path: root/components/mm/SConscript
blob: 39e4f6bbcfa651f82048f4008d1c5403a5f9053b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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('Memm', src, depend = ['ARCH_MM_MMU'], CPPPATH = CPPPATH)

Return('group')