uvm32/apps/rust-hello/Makefile
2025-12-06 22:37:10 +00:00

8 lines
297 B
Makefile

all:
cargo build -r --target riscv32im-unknown-none-elf && docker run -v `pwd`:/data -w /data --rm riscv-dev riscv64-unknown-elf-objcopy target/riscv32im-unknown-none-elf/release/rust-hello -O binary rust-hello.bin
test: all
../../host/host rust-hello.bin
clean:
rm -rf rust-hello.bin target