Skip to content

Commit cc40294

Browse files
fix(makefile): unset QEMU_PATH workaround
Signed-off-by: Anhad Singh <[email protected]>
1 parent 694e57f commit cc40294

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ iso: $(KERNEL_TARGET)
4040
distro-image: distro
4141
./build-support/mkimage.sh
4242

43+
QEMU_PATH ?= $(shell dirname $(shell which qemu-system-x86_64))
44+
4345
.PHONY: qemu
4446
qemu: $(KERNEL_TARGET) $(USERLAND_TARGET)
4547
${QEMU_PATH}/qemu-system-x86_64 -cdrom target/aero.iso -m 8G -serial stdio --boot d -s -enable-kvm -cpu host,+vmx -drive file=target/disk.img,if=none,id=NVME1,format=raw -device nvme,drive=NVME1,serial=nvme
4648

49+
# .PHONY: qemu_perf
50+
# qemu_perf:
51+
# ${QEMU_PATH}/qemu-system-x86_64 -cdrom target/aero.iso -m 8G -serial stdio --boot d -s -cpu host,+vmx -drive file=target/disk.img,if=none,id=NVME1,format=raw -device nvme,drive=NVME1,serial=nvme -plugin './target/kern-profile.so,out=raw-data,delay=1'
52+
4753
.PHONY: doc
4854
doc:
4955
cd src && cargo doc --package aero_kernel --release --target-dir=../target/doc/

0 commit comments

Comments
 (0)