You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
341 B
Makefile
20 lines
341 B
Makefile
2 years ago
|
|
||
|
TARGET := riscv64gc-unknown-none-elf
|
||
|
KERNEL_START := 0x80200000
|
||
|
MODE := release
|
||
|
|
||
|
|
||
|
build:
|
||
|
cargo build --$(MODE) --target=$(TARGET)
|
||
|
|
||
|
run:build
|
||
|
qemu-system-riscv64 \
|
||
|
-machine virt \
|
||
|
-nographic \
|
||
|
-bios ../bootloader/rustsbi-qemu.bin \
|
||
|
-device loader,file=target/$(TARGET)/$(MODE)/os.bin,addr=$(KERNEL_START)
|
||
|
|
||
|
|
||
|
|
||
|
clean:
|
||
|
rm -rf ./target
|