-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnpk.yml
More file actions
90 lines (85 loc) · 1.97 KB
/
npk.yml
File metadata and controls
90 lines (85 loc) · 1.97 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
## Package Base Information
name: app-nuclei_audio-opus
owner: nuclei
version: 0.1.0
description: Opus Interactive Audio Codec
type: app
keywords:
- opus
- codec
category: audio application
license: BSD
homepage: https://github.com/Nuclei-Software/nuclei-audio-library/tree/master/Opus
## Package Dependency
dependencies:
- name: sdk-nuclei_sdk
version:
# Package Configurations
configuration:
data_type:
default_value: fixed
type: choice
description: Data Type
choices:
- name: float
description: Floating Point
- name: fixed
description: Fixed Point
setconfig:
- config: stdclib
value: newlib_small
- config: download_mode
value: ddr
## Source Code Management
codemanage:
copyfiles:
- path:
- "*.c"
- "*.h"
- "src"
- "celt"
- "silk/*.c"
- "silk/*.h"
- "data/*.c"
- "data/*.h"
- "include"
- path: ["silk/fixed"]
condition: $(contains(${data_type}, "fixed"))
- path: ["silk/float"]
condition: $(contains(${data_type}, "float"))
incdirs:
- path:
- "./"
- "src"
- "celt"
- "include"
- "silk"
- "data"
- path: ["silk/fixed"]
condition: $(contains(${data_type}, "fixed"))
- path: ["silk/float"]
condition: $(contains(${data_type}, "float"))
libdirs:
ldlibs:
- libs: [m]
# Build Configuration
buildconfig:
- type: common
cdefines:
- defines: HAVE_CONFIG_H
- defines: USE_FIXED_POINT
condition: $(contains(${data_type}, "fixed"))
- defines: RISCV_ASM
condition: $(contains(${data_type}, "fixed"))
common_flags: # flags need to be combined together across all packages
- flags: -O3 -fno-tree-vectorize
ldflags:
cflags:
asmflags:
cxxflags:
prebuild_steps: # could be override by app/bsp type
command:
description:
postbuild_steps: # could be override by app/bsp type
command:
description: