소스 검색

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