public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Jiri Olsa <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: a.p.zijlstra@chello.nl, wangnan0@huawei.com, mingo@kernel.org,
	dsahern@gmail.com, jolsa@redhat.com, jolsa@kernel.org,
	hekuang@huawei.com, linux-kernel@vger.kernel.org,
	tglx@linutronix.de, hpa@zytor.com, namhyung@kernel.org,
	acme@redhat.com
Subject: [tip:perf/core] tools build: Fix cross compile build
Date: Wed, 14 Oct 2015 06:15:07 -0700	[thread overview]
Message-ID: <tip-3a70fcd3a4db56731f67f0189514953c74257944@git.kernel.org> (raw)
In-Reply-To: <20151013124358.GB9467@krava.brq.redhat.com>

Commit-ID:  3a70fcd3a4db56731f67f0189514953c74257944
Gitweb:     http://git.kernel.org/tip/3a70fcd3a4db56731f67f0189514953c74257944
Author:     Jiri Olsa <jolsa@redhat.com>
AuthorDate: Tue, 13 Oct 2015 14:43:58 +0200
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Tue, 13 Oct 2015 11:59:43 -0300

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>
---
 tools/build/Makefile.include | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/build/Makefile.include b/tools/build/Makefile.include
index 6572bb0..4e09ad6 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

      reply	other threads:[~2015-10-14 13:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30  3:18 [BUG] perf cross-compile error dual to fixdep not host-exe He Kuang
2015-09-30  6:13 ` Jiri Olsa
2015-10-08  8:02   ` He Kuang
2015-10-08  8:30     ` Jiri Olsa
2015-10-13 12:43       ` build: Fix cross compile build Jiri Olsa
2015-10-14 13:15         ` tip-bot for Jiri Olsa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-3a70fcd3a4db56731f67f0189514953c74257944@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@redhat.com \
    --cc=dsahern@gmail.com \
    --cc=hekuang@huawei.com \
    --cc=hpa@zytor.com \
    --cc=jolsa@kernel.org \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=wangnan0@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox