diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-15 16:23:46 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-15 16:29:20 -0400 |
commit | 4a0982f941d6f2550e8c39bc8bb0984b50dddf36 (patch) | |
tree | b1e9139400010555de4c93594efb9103008a6986 | |
parent | 4ea648aec01982d5a57816a95c4665d6081e78f9 (diff) |
objtool: Add -I$(srctree)/tools/arch/$(ARCH)/include/uapi
So that it can find asm/bitsperlong.h to get the __BITS_PER_LONG
definition.
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: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-pr3pvskh65pey4po7t122z4j@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/objtool/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 9a3110cac604..1f75b0a046cc 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile | |||
@@ -26,7 +26,7 @@ OBJTOOL_IN := $(OBJTOOL)-in.o | |||
26 | 26 | ||
27 | all: $(OBJTOOL) | 27 | all: $(OBJTOOL) |
28 | 28 | ||
29 | INCLUDES := -I$(srctree)/tools/include | 29 | INCLUDES := -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi |
30 | CFLAGS += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) | 30 | CFLAGS += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) |
31 | LDFLAGS += -lelf $(LIBSUBCMD) | 31 | LDFLAGS += -lelf $(LIBSUBCMD) |
32 | 32 | ||