123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- [config]
- default_to_workspace = false
- [tasks.clean]
- command = "cargo"
- args = ["clean"]
- [tasks.prototyper-nemu-build]
- command = "cargo"
- args = ["build", "-prustsbi-prototyper", "--release", "--features=nemu,payload"]
- [tasks.prototyper-nemu]
- command = "rust-objcopy"
- args = [
- "--binary-architecture=riscv64",
- "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper",
- "--output-target=binary",
- "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper.bin",
- ]
- dependencies = ["prototyper-nemu-build"]
- [tasks.prototyper-build]
- command = "cargo"
- args = [
- "build",
- "-prustsbi-prototyper",
- "--release",
- "--target",
- "riscv64imac-unknown-none-elf",
- "-Zbuild-std=core",
- ]
- env = { "RUSTFLAGS" = "-C relocation-model=pie -C link-arg=-pie" }
- [tasks.prototyper]
- command = "rust-objcopy"
- args = [
- "--binary-architecture=riscv64",
- "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper",
- "--output-target=binary",
- "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper.bin",
- ]
- dependencies = ["prototyper-build"]
- [tasks.test-kernel-build]
- command = "cargo"
- args = ["build", "-prustsbi-test-kernel", "--release"]
- [tasks.test-kernel]
- command = "rust-objcopy"
- args = [
- "--binary-architecture=riscv64",
- "target/riscv64imac-unknown-none-elf/release/rustsbi-test-kernel",
- "--output-target=binary",
- "target/riscv64imac-unknown-none-elf/release/rustsbi-test-kernel.bin",
- ]
- dependencies = ["test-kernel-build"]
- [tasks.test-kernel-itb]
- script = '''
- cp test-kernel/scripts/rustsbi-test-kernel.its target/riscv64imac-unknown-none-elf/release
- cd target/riscv64imac-unknown-none-elf/release/
- mkimage -f rustsbi-test-kernel.its rustsbi-test-kernel.itb
- rm rustsbi-test-kernel.its
- cd ../../../
- '''
- dependencies = ["prototyper", "test-kernel"]
|