From: Daniel Schwierzeck Date: Sun, 28 Oct 2018 21:13:04 +0100 Subject: [U-Boot] [PATCH 2/3] Kbuild: standalone: do not ignore platform-specific OBJCOPYFLAGS In-Reply-To: <20180923171517.21363-3-daniel.schwierzeck@gmail.com> References: <20180923171517.21363-1-daniel.schwierzeck@gmail.com> <20180923171517.21363-3-daniel.schwierzeck@gmail.com> Message-ID: <2df3721b-02cc-4152-d476-933257fd2124@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 23.09.18 um 19:15 schrieb Daniel Schwierzeck: > 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. are there any objections or can I apply this to u-boot-mips/next? Thanks. > > Signed-off-by: Daniel Schwierzeck > --- > > examples/standalone/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile > index abe1bf1883..f01816f24f 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) > > -- - Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: