From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753600AbcGYSL2 (ORCPT ); Mon, 25 Jul 2016 14:11:28 -0400 Received: from terminus.zytor.com ([198.137.202.10]:44708 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752481AbcGYSLZ (ORCPT ); Mon, 25 Jul 2016 14:11:25 -0400 Date: Mon, 25 Jul 2016 11:11:05 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: mingo@kernel.org, acme@redhat.com, hpa@zytor.com, jpoimboe@redhat.com, dsahern@gmail.com, namhyung@kernel.org, wangnan0@huawei.com, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, sfr@canb.auug.org.au, jolsa@kernel.org Reply-To: sfr@canb.auug.org.au, jolsa@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, adrian.hunter@intel.com, namhyung@kernel.org, wangnan0@huawei.com, jpoimboe@redhat.com, hpa@zytor.com, dsahern@gmail.com, mingo@kernel.org, acme@redhat.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH Git-Commit-ID: 630e7a2904a271a519093aff611f50e06d55085c 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: 630e7a2904a271a519093aff611f50e06d55085c Gitweb: http://git.kernel.org/tip/630e7a2904a271a519093aff611f50e06d55085c Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 22 Jul 2016 09:59:24 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 22 Jul 2016 16:28:25 -0300 objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH objtool's Makefile was setting up ARCH but fixing up just the x86_64 -> x86, using Makefile.arch will do the necessary fixups for all arches. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Josh Poimboeuf Cc: Namhyung Kim Cc: Stephen Rothwell Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-hbq0bbh03u2b722vozcyql31@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/objtool/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 1f75b0a..988129c 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -1,11 +1,9 @@ include ../scripts/Makefile.include +include ../scripts/Makefile.arch -ifndef ($(ARCH)) -ARCH ?= $(shell uname -m) ifeq ($(ARCH),x86_64) ARCH := x86 endif -endif # always use the host compiler CC = gcc