forked from michahoiting/rv-link
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnpk.yml
75 lines (70 loc) · 1.79 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
72
73
74
75
## Package Base Information
name: app-nsdk_dlink
owner: nuclei
version: 0.9.1
description: Nuclei Debugger Link Firmware
type: app
keywords:
- freertos
- dlink
category: freertos application
license:
homepage:
## Package Dependency
dependencies:
- name: sdk-nuclei_sdk
version:
- name: ssp-nsdk_gd32vf103
version:
- name: osp-nsdk_freertos
version:
## Package Configurations
configuration:
dlink_board:
default_value: gd32vf103c_dlink
type: choice
global: true
tips: "Select proper dlink develop board you are using"
description: DLink Board
choices:
- name: gd32vf103v_rvstar
description: "GD32VF103 RVSTAR Board"
- name: gd32vf103c_dlink
description: "GD32VF103 DLink Debugger Board"
app_commonflags:
value:
type: text
description: Application Compile Flags
## Set Configuration for other packages
setconfig:
- config: sysclk
value: hxtal_96mhz
- config: usbdriver
value: device
## Source Code Management
codemanage:
copyfiles:
- path: ["arch/", "flash/", "server/gdb-server/", "soc/port.h", "soc/gd32vf103/${dlink_board}/"]
- path: ["dlink.c", "FreeRTOSConfig.h", "README_DLink.md"]
incdirs:
- path: ["arch/riscv/include", "flash/include", "server/gdb-server/include", "soc", "soc/gd32vf103/${dlink_board}", "./"]
libdirs:
ldlibs:
- libs:
## Build Configuration
buildconfig:
- type: gcc
common_flags: # flags need to be combined together across all packages
- flags: -Os -fshort-wchar -DUSE_USB_FS
- flags: ${app_commonflags}
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:
common_defines: