12 lines
436 B
Makefile
12 lines
436 B
Makefile
.PHONY: build
|
|
|
|
build:
|
|
cargo build --target x86_64-unknown-uefi
|
|
|
|
testvm:
|
|
cp target/x86_64-unknown-uefi/debug/http_boot_client.efi build/esp/efi/httpboot/httpboot.efi
|
|
qemu-system-x86_64 -enable-kvm \
|
|
-drive if=pflash,format=raw,readonly=on,file=build/OVMF_CODE.fd \
|
|
-drive if=pflash,format=raw,readonly=off,file=build/OVMF_VARS.fd \
|
|
-drive format=raw,file=fat:rw:build/esp \
|
|
-netdev user,id=n1 -device virtio-net-pci,netdev=n1
|