]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Kbuild: standalone: do not ignore platform-specific OBJCOPYFLAGS
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 23 Sep 2018 17:15:16 +0000 (19:15 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 18 Nov 2018 15:02:23 +0000 (16:02 +0100)
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>
examples/standalone/Makefile

index abe1bf1883483dd947017a7f492853878dcaec9b..f01816f24f4a3851f1c9e1eada5a1fe42b75e430 100644 (file)
@@ -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)