Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Makefile: Add qemu flags
Browse files Browse the repository at this point in the history
  • Loading branch information
noriyotcp committed Mar 28, 2018
1 parent 0f98d60 commit c3b1956
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ $(ISO): cleansrcs $(KERNEL)
grub-mkrescue -o $@ $(ISO_DIR)

run: $(ISO)
qemu-system-x86_64 -cdrom $<
qemu-system-x86_64 -cdrom $< -monitor stdio -rtc base=localtime
.PHONY: run

debug: CFLAGS += -DENABLE_KERNEL_DEBUG
debug: cleaniso $(ISO)
qemu-system-x86_64 -cdrom $(ISO) -serial file:/tmp/serial.log
qemu-system-x86_64 -cdrom $(ISO) -serial stdio -m 256M
# qemu-system-x86_64 -cdrom $(ISO) -serial file:/tmp/serial.log
.PHONY: debug

clean:
Expand Down

0 comments on commit c3b1956

Please sign in to comment.