add porting codes of rt-thread (#494)
This commit is contained in:
26
core/iwasm/common/SConscript
Normal file
26
core/iwasm/common/SConscript
Normal file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# Copyright (c) 2021, RT-Thread Development Team
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
#
|
||||
|
||||
from building import *
|
||||
import re
|
||||
|
||||
Import('rtconfig')
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
src = Glob('*.c')
|
||||
|
||||
if rtconfig.ARCH == 'arm':
|
||||
if re.match('^cortex-m.*', rtconfig.CPU):
|
||||
src += ['arch/invokeNative_thumb.s']
|
||||
elif re.match('^cortex-a.*', rtconfig.CPU):
|
||||
src += ['arch/invokeNative_arm.s']
|
||||
|
||||
CPPPATH = [cwd, cwd + '/../include']
|
||||
|
||||
group = DefineGroup('iwasm_common', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Reference in New Issue
Block a user