Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b3db6f9 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

tools build: Make fixdep a hostprog



It is used in the build process, so stop suppressing its build in tools
cross builds.

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/20160927141846.GA6589@krava


[ Use HOSTCC on the $(OUTPUT)fixdep target, it was using the x-compiler
  to link fixdep-in.o, that was correctly built with HOSTCC and thus failing ]
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 0c3b7e42
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
hostprogs := fixdep

fixdep-y := fixdep.o
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ $(OUTPUT)fixdep-in.o: FORCE
	$(Q)$(MAKE) $(build)=fixdep

$(OUTPUT)fixdep: $(OUTPUT)fixdep-in.o
	$(QUIET_LINK)$(CC) $(LDFLAGS) -o $@ $<
	$(QUIET_LINK)$(HOSTCC) $(LDFLAGS) -o $@ $<

FORCE:

+0 −4
Original line number Diff line number Diff line
build := -f $(srctree)/tools/build/Makefile.build dir=. obj

ifdef CROSS_COMPILE
fixdep:
else
fixdep:
	$(Q)$(MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep
endif

.PHONY: fixdep