Skip to content
Snippets Groups Projects
Commit d3a9ba7f authored by Daniel Schwierzeck's avatar Daniel Schwierzeck
Browse files

Kbuild: standalone: do not ignore platform-specific OBJCOPYFLAGS


Currently the OBJCOPYFLAGS are cleared when assigning "-O srec"
or "-O binary" for standalone programs. All flags set by arch-specific
Makefiles are lost. This is bad if an arch demands arch-specific
flags for the objcopy step.

Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 1d3b97c9
No related branches found
No related tags found
No related merge requests found
...@@ -62,11 +62,11 @@ quiet_cmd_link_elf = LD $@ ...@@ -62,11 +62,11 @@ quiet_cmd_link_elf = LD $@
$(ELF): $(obj)/%: $(obj)/%.o $(LIB) FORCE $(ELF): $(obj)/%: $(obj)/%.o $(LIB) FORCE
$(call if_changed,link_elf) $(call if_changed,link_elf)
$(obj)/%.srec: OBJCOPYFLAGS := -O srec $(obj)/%.srec: OBJCOPYFLAGS += -O srec
$(obj)/%.srec: $(obj)/% FORCE $(obj)/%.srec: $(obj)/% FORCE
$(call if_changed,objcopy) $(call if_changed,objcopy)
$(obj)/%.bin: OBJCOPYFLAGS := -O binary $(obj)/%.bin: OBJCOPYFLAGS += -O binary
$(obj)/%.bin: $(obj)/% FORCE $(obj)/%.bin: $(obj)/% FORCE
$(call if_changed,objcopy) $(call if_changed,objcopy)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment