blob: a503a6e006c0cae619128e5ba13d7142a7beb283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from building import *
import os
cwd = GetCurrentDir()
CPPPATH = [cwd]
src = ['cpuport.c', 'interrupt.c']
src += ['context_gcc.S', 'interrupt_gcc.S']
if GetDepend(['RT_USING_HW_ATOMIC']):
src += ['atomic_riscv.c']
if GetDepend(['RT_USING_SMP']):
src += ['cpuport_smp.c', 'clint.c']
group = DefineGroup('lib_cpu', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
|