Makefile.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [config]
  2. default_to_workspace = false
  3. [tasks.clean]
  4. command = "cargo"
  5. args = ["clean"]
  6. [tasks.prototyper-nemu-build]
  7. command = "cargo"
  8. args = ["build", "-prustsbi-prototyper", "--release", "--features=nemu,payload"]
  9. [tasks.prototyper-nemu]
  10. command = "rust-objcopy"
  11. args = ["--binary-architecture=riscv64", "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper",
  12. "--output-target=binary", "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper.bin"
  13. ]
  14. dependencies = ["prototyper-nemu-build"]
  15. [tasks.prototyper-build]
  16. command = "cargo"
  17. args = ["build", "-prustsbi-prototyper", "--release"]
  18. [tasks.prototyper]
  19. command = "rust-objcopy"
  20. args = ["--binary-architecture=riscv64", "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper",
  21. "--output-target=binary", "target/riscv64imac-unknown-none-elf/release/rustsbi-prototyper.bin"
  22. ]
  23. dependencies = ["prototyper-build"]
  24. [tasks.test-kernel-build]
  25. command = "cargo"
  26. args = ["build", "-prustsbi-test-kernel", "--release"]
  27. [tasks.test-kernel]
  28. command = "rust-objcopy"
  29. args = ["--binary-architecture=riscv64", "target/riscv64imac-unknown-none-elf/release/rustsbi-test-kernel",
  30. "--output-target=binary", "target/riscv64imac-unknown-none-elf/release/rustsbi-test-kernel.bin"
  31. ]
  32. dependencies = ["test-kernel-build"]
  33. [tasks.test-kernel-itb]
  34. script = '''
  35. cp test-kernel/scripts/rustsbi-test-kernel.its target/riscv64imac-unknown-none-elf/release
  36. cd target/riscv64imac-unknown-none-elf/release/
  37. mkimage -f rustsbi-test-kernel.its rustsbi-test-kernel.itb
  38. rm rustsbi-test-kernel.its
  39. cd ../../../
  40. '''
  41. dependencies = ["prototyper", "test-kernel"]