Skip to content

Commit 6b3db6f

Browse files
Jiri Olsaacmel
authored andcommitted
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: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo 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: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0c3b7e4 commit 6b3db6f

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎tools/build/Build‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
hostprogs := fixdep
2+
13
fixdep-y := fixdep.o

‎tools/build/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $(OUTPUT)fixdep-in.o: FORCE
4242
$(Q)$(MAKE) $(build)=fixdep
4343

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

4747
FORCE:
4848

‎tools/build/Makefile.include‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
build := -f $(srctree)/tools/build/Makefile.build dir=. obj
22

3-
ifdef CROSS_COMPILE
4-
fixdep:
5-
else
63
fixdep:
74
$(Q)$(MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep
8-
endif
95

106
.PHONY: fixdep

0 commit comments

Comments
 (0)