objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH
authorArnaldo Carvalho de Melo <[email protected]>
Fri, 22 Jul 2016 12:59:24 +0000 (09:59 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 22 Jul 2016 19:28:25 +0000 (16:28 -0300)
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]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/objtool/Makefile

index 1f75b0a046ccad81bd78da1189e5039f7c40fd37..988129cb77269da8655e70f21eb79f7e275e76d7 100644 (file)
@@ -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