build: refactor kernel hex build to be common
Several platforms utilize a ihex image format. Rather than duplicating the build bits in everyones makefile, pull it into the toplevel makefile so we all share it. Change-Id: I9097b06e7e386a69ce6ab4d4e4d56cc776adfec2 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
b1d5ae72e3
commit
bbf736cf6e
4 changed files with 12 additions and 36 deletions
|
@ -6,16 +6,5 @@ endif
|
|||
|
||||
obj-y += soc.o
|
||||
|
||||
KERNEL_HEX_NAME = $(KERNEL_NAME).hex
|
||||
|
||||
quiet_cmd_gen_hex = HEX $@
|
||||
cmd_gen_hex = \
|
||||
( \
|
||||
$(OBJCOPY) -S -O ihex -R .note -R .comment -R COMMON -R .eh_frame $< $@; \
|
||||
)
|
||||
|
||||
$(KERNEL_HEX_NAME): $(KERNEL_ELF_NAME)
|
||||
$(call cmd,gen_hex)
|
||||
|
||||
zephyr: $(KERNEL_HEX_NAME)
|
||||
all: $(KERNEL_HEX_NAME)
|
||||
|
|
|
@ -6,16 +6,5 @@ endif
|
|||
|
||||
obj-y += soc.o
|
||||
|
||||
KERNEL_HEX_NAME = $(KERNEL_NAME).hex
|
||||
|
||||
quiet_cmd_gen_hex = HEX $@
|
||||
cmd_gen_hex = \
|
||||
( \
|
||||
$(OBJCOPY) -S -O ihex -R .note -R .comment -R COMMON -R .eh_frame $< $@; \
|
||||
)
|
||||
|
||||
$(KERNEL_HEX_NAME): $(KERNEL_ELF_NAME)
|
||||
$(call cmd,gen_hex)
|
||||
|
||||
zephyr: $(KERNEL_HEX_NAME)
|
||||
all: $(KERNEL_HEX_NAME)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue