aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2018-09-23 19:15:16 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2018-11-18 16:02:23 +0100
commitd3a9ba7f959fac65815e3308510afd4b79f47dc0 (patch)
treec3b2ab0ab6fe7769885668826db0c7c118afa8ad /examples
parent1d3b97c94eb562fa1071abd50b3a4cb4cca7f203 (diff)
downloadu-boot-d3a9ba7f959fac65815e3308510afd4b79f47dc0.zip
u-boot-d3a9ba7f959fac65815e3308510afd4b79f47dc0.tar.gz
u-boot-d3a9ba7f959fac65815e3308510afd4b79f47dc0.tar.bz2
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: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/standalone/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index abe1bf1..f01816f 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -62,11 +62,11 @@ quiet_cmd_link_elf = LD $@
$(ELF): $(obj)/%: $(obj)/%.o $(LIB) FORCE
$(call if_changed,link_elf)
-$(obj)/%.srec: OBJCOPYFLAGS := -O srec
+$(obj)/%.srec: OBJCOPYFLAGS += -O srec
$(obj)/%.srec: $(obj)/% FORCE
$(call if_changed,objcopy)
-$(obj)/%.bin: OBJCOPYFLAGS := -O binary
+$(obj)/%.bin: OBJCOPYFLAGS += -O binary
$(obj)/%.bin: $(obj)/% FORCE
$(call if_changed,objcopy)