Add debug_asm in Makefile

master
WangRunji 7 years ago
parent 5c80d903ad
commit b549d08724

@ -30,13 +30,14 @@ else
endif
ld := $(prefix)ld
objdump := $(prefix)objdump
.PHONY: all clean run iso kernel build
.PHONY: all clean run iso kernel build debug_asm
all: $(kernel)
clean:
@rm -r build
@rm -r build target
run: $(iso)
@qemu-system-$(arch) $(qemu_opts) || [ $$? -eq 11 ] # run qemu and assert it exit 11
@ -45,6 +46,9 @@ iso: $(iso)
build: iso
debug_asm:
@$(objdump) -dS $(kernel) | less
$(iso): $(kernel) $(grub_cfg)
@mkdir -p build/isofiles/boot/grub
@cp $(kernel) build/isofiles/boot/kernel.bin

Loading…
Cancel
Save