Message ID | 20211109084041.3523665-1-Vijaikumar_Kanagarajan@mentor.com |
---|---|
State | Accepted |
Headers | show |
Series | test: Fix cross compilation issue | expand |
On 09.11.21 09:40, Vijai Kumar K wrote: > Use the right strip command of the underlying architecture. > > Fixes the below error during cross compilation. > strip -N main -o /home/builder/swupdate/git/core/built-in.o.tmp /home/builder/swupdate/git/core/built-in.o > strip: Unable to recognise the format of the input file `/home/builder/swupdate/git/core/built-in.o' > > Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com> > --- > test/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/test/Makefile b/test/Makefile > index e7df138..a9b9f71 100644 > --- a/test/Makefile > +++ b/test/Makefile > @@ -35,7 +35,7 @@ tests-lnk = $(addsuffix .lnk, $(TARGETS)) > targets += $(addsuffix .o, $(tests-y)) > > ifneq ($(CONFIG_EXTRA_LDFLAGS),) > -EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))#")) > +EXTRA_LDFLAGS += $($(STRIP) $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))#")) > endif > > ## transfer __mock_*() functions to according linker flags via rudimentary regex awk parsing > @@ -68,7 +68,7 @@ tests: > endif > > $(obj)/%.lnk: $(obj)/%.o $(objtree)/core/built-in.o > - $(Q)strip -N main -o $(objtree)/core/built-in.o.tmp $(objtree)/core/built-in.o > + $(Q)$(STRIP) -N main -o $(objtree)/core/built-in.o.tmp $(objtree)/core/built-in.o > $(Q)$(call cmd,linktestexe) > > DATADIR := test/data > Acked-by: Stefano Babic <sbabic@denx.de> Best regards, Stefano Babic
diff --git a/test/Makefile b/test/Makefile index e7df138..a9b9f71 100644 --- a/test/Makefile +++ b/test/Makefile @@ -35,7 +35,7 @@ tests-lnk = $(addsuffix .lnk, $(TARGETS)) targets += $(addsuffix .o, $(tests-y)) ifneq ($(CONFIG_EXTRA_LDFLAGS),) -EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))#")) +EXTRA_LDFLAGS += $($(STRIP) $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))#")) endif ## transfer __mock_*() functions to according linker flags via rudimentary regex awk parsing @@ -68,7 +68,7 @@ tests: endif $(obj)/%.lnk: $(obj)/%.o $(objtree)/core/built-in.o - $(Q)strip -N main -o $(objtree)/core/built-in.o.tmp $(objtree)/core/built-in.o + $(Q)$(STRIP) -N main -o $(objtree)/core/built-in.o.tmp $(objtree)/core/built-in.o $(Q)$(call cmd,linktestexe) DATADIR := test/data
Use the right strip command of the underlying architecture. Fixes the below error during cross compilation. strip -N main -o /home/builder/swupdate/git/core/built-in.o.tmp /home/builder/swupdate/git/core/built-in.o strip: Unable to recognise the format of the input file `/home/builder/swupdate/git/core/built-in.o' Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com> --- test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)