objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH
[cascardo/linux.git] / tools / objtool / Makefile
index 1f75b0a..988129c 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