diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-22 08:59:24 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-22 15:28:25 -0400 |
commit | 630e7a2904a271a519093aff611f50e06d55085c (patch) | |
tree | 9c54f26e275770f554ba03612446bfede6b6ee1c /tools | |
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 <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-hbq0bbh03u2b722vozcyql31@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-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 @@ | |||
1 | include ../scripts/Makefile.include | 1 | include ../scripts/Makefile.include |
2 | include ../scripts/Makefile.arch | ||
2 | 3 | ||
3 | ifndef ($(ARCH)) | ||
4 | ARCH ?= $(shell uname -m) | ||
5 | ifeq ($(ARCH),x86_64) | 4 | ifeq ($(ARCH),x86_64) |
6 | ARCH := x86 | 5 | ARCH := x86 |
7 | endif | 6 | endif |
8 | endif | ||
9 | 7 | ||
10 | # always use the host compiler | 8 | # always use the host compiler |
11 | CC = gcc | 9 | CC = gcc |