Makefile: Add aedrix-kernel.objdump target
This commit is contained in:
parent
ab29c2c442
commit
e2a3ab602c
7
Makefile
7
Makefile
@ -13,6 +13,7 @@ AS = $(TOOL_PREFIX)as
|
|||||||
CC = $(TOOL_PREFIX)gcc
|
CC = $(TOOL_PREFIX)gcc
|
||||||
LD = $(TOOL_PREFIX)ld
|
LD = $(TOOL_PREFIX)ld
|
||||||
OBJCPY = $(TOOL_PREFIX)objcopy
|
OBJCPY = $(TOOL_PREFIX)objcopy
|
||||||
|
OBJDMP = $(TOOL_PREFIX)objdump
|
||||||
|
|
||||||
# Define the flags we'll need for our tools
|
# Define the flags we'll need for our tools
|
||||||
INCLUDES = -I include
|
INCLUDES = -I include
|
||||||
@ -34,6 +35,10 @@ aedrix-kernel.elf: $(KOBJS)
|
|||||||
$(if $(VERBOSE:1=),@echo ' LD $@')
|
$(if $(VERBOSE:1=),@echo ' LD $@')
|
||||||
$(if $(VERBOSE:1=),@)$(LD) $(KLDFLAGS) -o $@ $(KOBJS) $(EXTRA_LIBS)
|
$(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
|
aedrix-kernel.img: aedrix-kernel.elf
|
||||||
$(if $(VERBOSE:1=),@echo ' OBJCPY $@')
|
$(if $(VERBOSE:1=),@echo ' OBJCPY $@')
|
||||||
$(if $(VERBOSE:1=),@)$(OBJCPY) $< -O binary $@
|
$(if $(VERBOSE:1=),@)$(OBJCPY) $< -O binary $@
|
||||||
@ -57,6 +62,8 @@ clean:
|
|||||||
@rm -f $(KOBJS)
|
@rm -f $(KOBJS)
|
||||||
@echo ' CLEAN aedrix-kernel.elf'
|
@echo ' CLEAN aedrix-kernel.elf'
|
||||||
@rm -f aedrix-kernel.elf
|
@rm -f aedrix-kernel.elf
|
||||||
|
@echo ' CLEAN aedrix-kernel.objdump'
|
||||||
|
@rm -f aedrix-kernel.objdump
|
||||||
@echo ' CLEAN aedrix-kernel.img'
|
@echo ' CLEAN aedrix-kernel.img'
|
||||||
@rm -f aedrix-kernel.img
|
@rm -f aedrix-kernel.img
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user