tornado-os/tornado-kernel/justfile

15 lines
392 B
Makefile

target := "riscv64imac-unknown-none-elf"
mode := "debug"
build-path := "../target/" + target + "/" + mode + "/"
kernel-elf := build-path + "tornado-kernel"
kernel-bin := build-path + "tornado-kernel.bin"
objcopy := "rust-objcopy --binary-architecture=riscv64"
build: kernel
@{{objcopy}} {{kernel-elf}} --strip-all -O binary {{kernel-bin}}
kernel:
@cargo build --target={{target}}