From: Arnaldo Carvalho de Melo Date: Fri, 22 Jul 2016 12:59:24 +0000 (-0300) Subject: objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=630e7a2904a271a519093aff611f50e06d55085c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 1f75b0a046cc..988129cb7726 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