From e2a3ab602c43029f4d7c16f3cf5d5a87bea728fc Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Sun, 23 Sep 2012 01:22:49 -0400 Subject: [PATCH] Makefile: Add aedrix-kernel.objdump target --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 3502aa4..6a448fa 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ AS = $(TOOL_PREFIX)as CC = $(TOOL_PREFIX)gcc LD = $(TOOL_PREFIX)ld OBJCPY = $(TOOL_PREFIX)objcopy +OBJDMP = $(TOOL_PREFIX)objdump # Define the flags we'll need for our tools INCLUDES = -I include @@ -34,6 +35,10 @@ aedrix-kernel.elf: $(KOBJS) $(if $(VERBOSE:1=),@echo ' LD $@') $(if $(VERBOSE:1=),@)$(LD) $(KLDFLAGS) -o $@ $(KOBJS) $(EXTRA_LIBS) +aedrix-kernel.objdump: aedrix-kernel.elf + $(if $(VERBOSE:1=),@echo ' OBJDMP $@') + $(if $(VERBOSE:1=),@)$(OBJDMP) -D $< > $@ + aedrix-kernel.img: aedrix-kernel.elf $(if $(VERBOSE:1=),@echo ' OBJCPY $@') $(if $(VERBOSE:1=),@)$(OBJCPY) $< -O binary $@ @@ -57,6 +62,8 @@ clean: @rm -f $(KOBJS) @echo ' CLEAN aedrix-kernel.elf' @rm -f aedrix-kernel.elf + @echo ' CLEAN aedrix-kernel.objdump' + @rm -f aedrix-kernel.objdump @echo ' CLEAN aedrix-kernel.img' @rm -f aedrix-kernel.img