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