mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-17 07:05:31 +08:00
Add the ARM NVIC PIC driver, no-MMU I/O mapping, built-in FDT support, and Cortex-M CPU hooks required by the native RT-Thread device model.
21 lines
599 B
Python
21 lines
599 B
Python
import os
|
|
from building import *
|
|
|
|
group = []
|
|
cwd = GetCurrentDir()
|
|
|
|
if GetDepend('ARCH_ARM_CORTEX_A') or GetDepend('ARCH_ARMV8') or GetDepend('ARCH_RISCV64'):
|
|
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)
|
|
elif GetDepend('RT_USING_OFW'):
|
|
group = DefineGroup('Memm', ['ioremap-nommu.c'], depend = ['RT_USING_OFW'], CPPPATH = [cwd])
|
|
|
|
group = group + SConscript(os.path.join('utest', 'SConscript'))
|
|
|
|
Return('group')
|