summaryrefslogtreecommitdiff
path: root/components/mm/SConscript
blob: d1f5372551f9703ef61ca18fe4246a087aff4d7c (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('mm', src, depend = ['ARCH_MM_MMU'], CPPPATH = CPPPATH)

Return('group')