-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
51 lines (45 loc) · 919 Bytes
/
Makefile.toml
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
# Emulator with qemu
[tasks.run]
command = "qemu-system-aarch64"
args = [
"-machine",
"virt",
"-m",
"1024M",
"-cpu",
"cortex-a72",
"-nographic",
"-kernel",
"target/${CARGO_MAKE_CRATE_TARGET_TRIPLE}/debug/neihe.bin",
]
dependencies = ["binary"]
# Cleanup
[tasks.clean]
command = "cargo"
args = ["clean"]
# Build debug target
[tasks.build]
command = "cargo"
args = ["build"]
# Transform the output of Cargo (ELF) into binary format
[tasks.binary]
command = "cargo"
args = [
"objcopy",
"--",
"-O",
"binary",
"target/${CARGO_MAKE_CRATE_TARGET_TRIPLE}/debug/neihe.bin",
]
# List all symbols in an executable
[tasks.nm]
command = "cargo"
args = ["nm", "--", "--numeric-sort", "--print-size"]
# Disassemble a binary
[tasks.asm]
command = "cargo"
args = ["objdump", "--", "--disassemble"]
# Print binary size in System V format
[tasks.size]
command = "cargo"
args = ["size", "--", "-A", "-x"]