diff options
author | Jiri Olsa <[email protected]> | 2015-10-13 14:43:58 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-10-13 11:59:43 -0300 |
commit | 3a70fcd3a4db56731f67f0189514953c74257944 (patch) | |
tree | 7f1aa3173223134915eb660d4621b798ff4f4ac7 | |
parent | c95f3432118c6b7a3bde63aa6eb95ccd163119eb (diff) |
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 <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/build/Makefile.include | 4 |
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 |