Commit
6b3db6f9b970001b751a6cd001bc2ab581ce0fb3
Exists in
smarc_imx_lf-5.15.y
and in
27 other branches
8mp-imx_5.4.70_2.3.0, 8qm-imx_5.4.70_2.3.0, emb_imx_lf-5.15.y, emb_lf-6.1.y, pitx_8mp_lf-5.10.y, rt_linux_5.15.71, smarc-8m-android-11.0.0_2.0.0, smarc-imx6_4.14.98_2.0.0_ga, smarc-imx6_4.9.88_2.0.0_ga, smarc-imx7_4.14.98_2.0.0_ga, smarc-imx7_4.9.11_1.0.0_ga, smarc-imx7_4.9.88_2.0.0_ga, smarc-imx_4.9.11_1.0.0_ga, smarc-imx_4.9.51_imx8m_ga, smarc-imx_4.9.88_2.0.0_ga, smarc-n7.1.2_2.0.0-ga, smarc_8m_00d0_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.14.78_1.0.0_ga, smarc_8m_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.19.35_1.1.0, smarc_8mm_imx_4.14.78_1.0.0_ga, smarc_8mm_imx_4.14.98_2.0.0_ga, smarc_8mm_imx_4.19.35_1.1.0, smarc_8mm_imx_5.4.24_2.1.0, smarc_8mp_lf-5.10.y, smarc_8mq_imx_5.4.24_2.1.0, smarc_8mq_lf-5.10.y
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>
Showing
3 changed files
with
3 additions
and
5 deletions
Side-by-side Diff
|
1 |
+hostprogs := fixdep |
|
2 |
+ |
1
|
3 |
fixdep-y := fixdep.o |
... |
... |
@@ -42,7 +42,7 @@ |
42
|
42 |
$(Q)$(MAKE) $(build)=fixdep |
43
|
43 |
|
44
|
44 |
$(OUTPUT)fixdep: $(OUTPUT)fixdep-in.o |
45
|
|
- $(QUIET_LINK)$(CC) $(LDFLAGS) -o $@ $< |
|
45 |
+ $(QUIET_LINK)$(HOSTCC) $(LDFLAGS) -o $@ $< |
46
|
46 |
|
47
|
47 |
FORCE: |
48
|
48 |
|
1
|
1 |
build := -f $(srctree)/tools/build/Makefile.build dir=. obj |
2
|
2 |
|
3
|
|
-ifdef CROSS_COMPILE |
4
|
3 |
fixdep: |
5
|
|
-else |
6
|
|
-fixdep: |
7
|
4 |
$(Q)$(MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep |
8
|
|
-endif |
9
|
5 |
|
10
|
6 |
.PHONY: fixdep |