-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrepo.json
34 lines (34 loc) · 1.23 KB
/
qrepo.json
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
{
"name": "rishka-sdk",
"author": "nthnn",
"version": "v0.0.1",
"description": "RISC-V virtual runtime in C/C++ SDK made for ESP32-WROVER with PSRAM.",
"git": "https://github.com/nthnn/rishka.git",
"scripts": {
"linux:compile": [
"mkdir -p dist",
"riscv64-unknown-elf-g++ -march=rv64im -mabi=lp64 -nostdlib -Wl,-T,scripts/link.ld -O2 -o dist/{{2}}.out -Isdk sdk/*.cpp {{1}} scripts/launcher.s",
"riscv64-unknown-elf-objcopy -O binary dist/{{2}}.out dist/{{2}}.bin",
"rm dist/{{2}}.out"
],
"windows:compile": [
"riscv64-unknown-elf-g++ -march=rv64im -mabi=lp64 -nostdlib -Wl,-T,scripts/link.ld -O2 -o dist/{{2}}.out -Isdk sdk/*.cpp {{1}} scripts/launcher.s",
"riscv64-unknown-elf-objcopy -O binary dist/{{2}}.out dist/{{2}}.bin",
"rm dist/{{2}}.out"
],
"compile-examples": [
"qrepo run compile examples/sdk/blink.cpp blink",
"qrepo run compile examples/sdk/delay.cpp delay",
"qrepo run compile examples/sdk/fileex.cpp fileex",
"qrepo run compile examples/sdk/hello.cpp hello",
"qrepo run compile examples/sdk/shell.cpp shell",
"qrepo run compile examples/sdk/sysinfo.cpp sysinfo"
],
"dump": [
"riscv64-unknown-elf-objdump -b binary -m riscv:rv64 -D {{1}}"
],
"clean": [
"rm -rf dist"
]
}
}