objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 630e7a2904a271a519093aff611f50e06d55085c Gitweb: http://git.kernel.org/tip/630e7a2904a271a519093aff611f50e06d55085c Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Fri, 22 Jul 2016 09:59:24 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> 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 <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Stephen Rothwell <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/objtool/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
tools/objtool/Makefile +1 -3
@@ -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