summaryrefslogtreecommitdiffstats
path: root/tools/build
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2015-10-13 14:43:58 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-10-13 11:59:43 -0300
commit3a70fcd3a4db56731f67f0189514953c74257944 (patch)
tree7f1aa3173223134915eb660d4621b798ff4f4ac7 /tools/build
parentc95f3432118c6b7a3bde63aa6eb95ccd163119eb (diff)
downloadlinux-stable-3a70fcd3a4db56731f67f0189514953c74257944.tar.gz
linux-stable-3a70fcd3a4db56731f67f0189514953c74257944.tar.bz2
linux-stable-3a70fcd3a4db56731f67f0189514953c74257944.zip
tools build: Fix cross compile build
He Kuang the new fixdep tool breaks cross compiling. The reason is it wouldn't get compiled under host arch, but under cross arch and failed to run. We need to add support for host side tools build, meanwhile disabling fixdep usage for cross arch builds. Reported-by: He Kuang <hekuang@huawei.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/r/20151013124358.GB9467@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/build')
-rw-r--r--tools/build/Makefile.include4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build/Makefile.include b/tools/build/Makefile.include
index 6572bb023543..4e09ad617a60 100644
--- a/tools/build/Makefile.include
+++ b/tools/build/Makefile.include
@@ -1,6 +1,10 @@
build := -f $(srctree)/tools/build/Makefile.build dir=. obj
+ifdef CROSS_COMPILE
+fixdep:
+else
fixdep:
$(Q)$(MAKE) -C $(srctree)/tools/build fixdep
+endif
.PHONY: fixdep