tools build: Fix cross compile build
authorJiri Olsa <[email protected]>
Tue, 13 Oct 2015 12:43:58 +0000 (14:43 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 13 Oct 2015 14:59:43 +0000 (11:59 -0300)
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]>
tools/build/Makefile.include

index 6572bb023543703fca7f48abc0c8fa84e8c95459..4e09ad617a607dd0884ada776d26df23bac407cb 100644 (file)
@@ -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