Переглянути джерело

chore: update Makefile to run with qemu

greatbridf 2 роки тому
батько
коміт
ed409420ad
1 змінених файлів з 6 додано та 3 видалено
  1. 6 3
      Makefile

+ 6 - 3
Makefile

@@ -1,7 +1,10 @@
 .PHONY: run
-run:
-	-rm build/boot.img.lock
-	-bochs -f bochs.conf
+run: build
+	qemu-system-x86_64 -drive file=build/boot.img,format=raw -display curses -no-reboot -no-shutdown -S -s -enable-kvm
+
+.PHONY: build
+build:
+	cmake --build build --target boot.img
 
 build/boot.vdi: build/boot.img
 	-rm build/boot.vdi