15 lines
515 B
TOML
15 lines
515 B
TOML
[build]
|
|
# rustflags = ["-g"]
|
|
# target = ["riscv64gc-unknown-none-elf", "x86_64-unknown-none"]
|
|
target = ["riscv64gc-unknown-none-elf"]
|
|
|
|
[target.riscv64gc-unknown-none-elf]
|
|
rustflags = [
|
|
"-C", "link-arg=-Tsrc/arch/riscv64/link.ld",
|
|
"-C", "link-arg=--omagic",
|
|
]
|
|
runner = "qemu-system-riscv64 -nographic -semihosting -cpu rv64 -machine virt -bios none -smp 4 -m 1G -device virtio-blk-pci,drive=test -drive file=test.raw,format=raw,id=test -kernel"
|
|
|
|
[unstable]
|
|
build-std = ["core", "compiler_builtins", "alloc"]
|