-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
69 lines (62 loc) · 1.63 KB
/
Makefile.toml
File metadata and controls
69 lines (62 loc) · 1.63 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
[config]
default_to_workspace = false
[env]
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true
[tasks.test-bare]
args = [
"test",
"--package", "zcene-bare",
]
command = "cargo"
[tasks.build-bare-metal-playground]
env = { "RUSTFLAGS" = "-Zhigher-ranked-assumptions" }
args = [
"build",
"--package", "zcene-bare-metal-playground",
"--release",
"--target", "zcene-bare-metal/x86_64.json",
"-Z", "build-std=core,alloc,compiler_builtins",
"-Z", "build-std-features=compiler-builtins-mem",
"-Z", "json-target-spec",
]
command = "cargo"
[tasks.build-bare-metal-playground-x86_64]
args = [
"build",
"--package", "zcene-bare-metal-playground-x86_64",
"--release",
"--target", "zcene-bare-metal/x86_64.json",
"-Z", "build-std=core,alloc,compiler_builtins",
"-Z", "build-std-features=compiler-builtins-mem",
"-Z", "json-target-spec",
]
command = "cargo"
dependencies = [
"build-bare-metal-playground",
]
[tasks.run-bare-metal-playground-x86_64-uefi]
args = [
#"-d", "int",
"-no-reboot",
"-nographic",
"-cpu", "qemu64",
"-drive", "format=raw,unit=1,file=target/x86_64/release/zcene-bare-metal-playground-x86_64-uefi.img",
"-drive", "if=pflash,format=raw,unit=0,file=QEMU_UEFI_CODE-x86_64.fd",
"-nic", "none",
"-m", "1024",
"-smp", "2",
]
command = "qemu-system-x86_64"
dependencies = [
"build-bare-metal-playground-x86_64",
]
[tasks.prepare-bare-metal-playground-x86_64-uefi]
args = [
"-o",
"QEMU_UEFI_CODE-x86_64.fd",
"https://retrage.github.io/edk2-nightly/bin/RELEASEX64_OVMF_CODE.fd",
]
command = "curl"
[tasks.clean]
command = "cargo"
args = ["clean"]