justfile 404 B

12345678910111213
  1. target := "riscv64imac-unknown-none-elf"
  2. mode := "debug"
  3. build-path := "../../target/" + target + "/" + mode + "/"
  4. m-firmware-file := build-path + "rustsbi-qemu"
  5. m-bin-file := build-path + "rustsbi-qemu.bin"
  6. objcopy := "rust-objcopy --binary-architecture=riscv64"
  7. build: firmware
  8. @{{objcopy}} {{m-firmware-file}} --strip-all -O binary {{m-bin-file}}
  9. firmware:
  10. @cargo build --target={{target}}