-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnpk.yml
executable file
·71 lines (66 loc) · 1.91 KB
/
npk.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
## Package Base Information
name: mwp-nsdk_tflm
owner: nuclei
description: tflite-micro component for nuclei sdk
type: mwp
version: 0.3.0
keywords:
- tflite-micro
- ai
license: Apache-2.0
homepage: https://github.com/Nuclei-Software/npk-tflm
dependencies:
- name: sdk-nuclei_sdk
version: 0.6.0
packinfo:
name: tflite-micro for nuclei sdk
doc:
website: https://github.com/Nuclei-Software/npk-tflm
usermanual:
setconfig:
- config: nmsislibsel
value: nmsis_nn
- config: stdclib
value: newlib_small
## Source Code Management
codemanage:
installdir: tflm
copyfiles:
- path: ["tensorflow/", "third_party/", "signal/"]
incdirs:
- path: ["./", "third_party/flatbuffers/include", "third_party/kissfft"]
- path: ["third_party/gemmlowp", "third_party/ruy"]
# required latest Nuclei Studio NPK to support excludefiles
excludefiles:
- path: []
## Build Configuration
buildconfig:
- type: gcc
description: Nuclei GNU Toolchain
cross_prefix: riscv64-unknown-elf- # optional
common_flags: # flags need to be combined together across all packages
- flags: >-
-fno-common -mexplicit-relocs -fno-builtin-printf -fno-exceptions
-fno-unwind-tables -funsigned-char -Wno-write-strings
-fno-delete-null-pointer-checks -fomit-frame-pointer
ldflags:
- flags: -lm
- flags: -lstdc++
cflags:
asmflags:
cxxflags:
- flags: -fno-threadsafe-statics
- flags: -fno-use-cxa-atexit
- flags: -fpermissive
- flags: -fno-rtti
- flags: --std=gnu++11
common_defines:
- defines: NMSIS_NN
- defines: TF_LITE_USE_GLOBAL_MIN
- defines: TF_LITE_USE_GLOBAL_MAX
- defines: TF_LITE_MCU_DEBUG_LOG
- defines: TF_LITE_USE_GLOBAL_CMATH_FUNCTIONS
- defines: TF_LITE_STATIC_MEMORY
- defines: TF_LITE_DISABLE_X86_NEON
- defines: KERNELS_OPTIMIZED_FOR_SPEED
- defines: _DEFAULT_SOURCE