diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-22 09:59:24 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-22 16:28:25 -0300 |
commit | 630e7a2904a271a519093aff611f50e06d55085c (patch) | |
tree | 9c54f26e275770f554ba03612446bfede6b6ee1c | |
parent | 0a943cb10ce783a1c55adf6f52f62bcbd5f49314 (diff) |
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]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/objtool/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
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 |