From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932775AbbJNNPh (ORCPT ); Wed, 14 Oct 2015 09:15:37 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58844 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753375AbbJNNPf (ORCPT ); Wed, 14 Oct 2015 09:15:35 -0400 Date: Wed, 14 Oct 2015 06:15:07 -0700 From: tip-bot for Jiri Olsa Message-ID: 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 Reply-To: jolsa@redhat.com, jolsa@kernel.org, a.p.zijlstra@chello.nl, wangnan0@huawei.com, mingo@kernel.org, dsahern@gmail.com, hpa@zytor.com, acme@redhat.com, namhyung@kernel.org, hekuang@huawei.com, linux-kernel@vger.kernel.org, tglx@linutronix.de In-Reply-To: <20151013124358.GB9467@krava.brq.redhat.com> References: <20151013124358.GB9467@krava.brq.redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] tools build: Fix cross compile build Git-Commit-ID: 3a70fcd3a4db56731f67f0189514953c74257944 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3a70fcd3a4db56731f67f0189514953c74257944 Gitweb: http://git.kernel.org/tip/3a70fcd3a4db56731f67f0189514953c74257944 Author: Jiri Olsa AuthorDate: Tue, 13 Oct 2015 14:43:58 +0200 Committer: Arnaldo Carvalho de Melo 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 Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Link: http://lkml.kernel.org/r/20151013124358.GB9467@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- 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