1
0

Makefile: Add aedrix-kernel.objdump target

This commit is contained in:
Aaron Lindsay 2012-09-23 01:22:49 -04:00
parent ab29c2c442
commit e2a3ab602c

View File

@ -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