forked from kendryte/kendryte-standalone-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSConscript
57 lines (54 loc) · 1.36 KB
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from building import *
cwd = GetCurrentDir()
src = Split('''
lib/bsp/entry.c
lib/bsp/entry_user.c
lib/drivers/aes.c
lib/drivers/clint.c
lib/drivers/dmac.c
lib/drivers/dvp.c
lib/drivers/fft.c
lib/drivers/fpioa.c
lib/drivers/gpio.c
lib/drivers/gpiohs.c
lib/drivers/i2c.c
lib/drivers/i2s.c
lib/drivers/kpu.c
lib/drivers/plic.c
lib/drivers/pwm.c
lib/drivers/rtc.c
lib/drivers/sha256.c
lib/drivers/spi.c
lib/drivers/sysctl.c
lib/drivers/timer.c
lib/drivers/utils.c
lib/drivers/wdt.c
lib/nncase/v0/runtime/kernel_registry.cpp
lib/nncase/v0/runtime/interpreter.cpp
lib/nncase/v0/runtime/neutral/neutral_ops.cpp
lib/nncase/v0/runtime/k210/interpreter.cpp
lib/nncase/v0/runtime/k210/k210_ops.cpp
lib/nncase/v0/runtime/cpu/cpu_ops.cpp
lib/nncase/nncase.cpp
''')
CPPPATH = [cwd + '/lib/drivers/include',
cwd + '/lib/nncase/v0/include',
cwd + '/lib/nncase/include',
cwd + '/third_party/xtl/include',
cwd + '/lib/bsp/include',
cwd + '/lib/utils/include']
CPPDEFINES = ['NNCASE_TARGET=k210',
'TCB_SPAN_NO_EXCEPTIONS',
'TCB_SPAN_NO_CONTRACT_CHECKING',
'LV_CONF_INCLUDE_SIMPLE',
'_IOMEM_MALLOC_H',
'iomem_malloc=malloc',
'iomem_free=free',
'CONFIG_LOG_COLORS',
'CONFIG_LOG_ENABLE',
'CONFIG_LOG_LEVEL=LOG_VERBOSE',
'FPGA_PLL',
'LOG_KERNEL',
'__riscv64']
group = DefineGroup('K210-SDK', src, depend = ['PKG_USING_K210_SDK'], CPPPATH = CPPPATH, LOCAL_CPPDEFINES = CPPDEFINES)
Return('group')