Skip to content

Commit

Permalink
objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo committed Jul 22, 2016
1 parent 0a943cb commit 630e7a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/objtool/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 630e7a2

Please sign in to comment.