Browse Source

make: add serial-based headless boot target

K. Lange 1 year ago
parent
commit
99f9ff429a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Makefile

+ 6 - 0
Makefile

@@ -342,6 +342,12 @@ shell: image.iso
 	  -fw_cfg name=opt/org.toaruos.term,string=${TERM} </dev/null >/dev/null & \
 	  stty raw -echo && nc -l 127.0.0.1 8090 && stty sane && wait
 
+.PHONY: serial
+serial: image.iso
+	@qemu-system-i386 -cdrom $< ${QEMU_ARGS} \
+	  -nographic -no-reboot \
+	  -fw_cfg name=opt/org.toaruos.bootmode,string=headless
+
 .PHONY: efi64
 efi64: image.iso
 	qemu-system-x86_64 -cdrom $< ${QEMU_ARGS} \