From b6ce3db0609318907cb2d34d8dde52fe17c31b5c Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 7 Oct 2021 20:39:00 +0000 Subject: add objdump targets for boot and kernel --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bd50bdd..07343b1 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ C_SOURCES = \ drivers/video/console/vgacon.c OBJECTS = ${C_SOURCES:.c=.o} -.PHONY: all qemu clean +.PHONY: all qemu objdump-boot objdump-kernel clean all: $(OSBIN) @@ -52,6 +52,13 @@ $(KERNBIN): $(ARCH_BOOT)/head.o $(OBJECTS) qemu: $(OSBIN) qemu-system-i386 -kernel $(OSBIN) +objdump-boot: $(BOOTBIN) + $(MAKE) -C $(ARCH_BOOT) objdump-bootsect objdump-setup + +objdump-kernel: $(KERNBIN) + $(OBJDUMP) -D -m i386 -b binary \ + --adjust-vma=0x1000 -Maddr32,data32 $< + clean: $(MAKE) -C $(ARCH_BOOT) clean rm -rf $(ARCH_BOOT)/head.o kernel/main.o -- cgit v1.2.3-18-g5258