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