Skip to content

Commit 9eb7198

Browse files
jpoimboeIngo Molnar
authored andcommitted
objtool: Fix cross-build
Stephen Rothwell reported this cross-compilation build failure: | In file included from orc_dump.c:19:0: | orc.h:21:10: fatal error: asm/orc_types.h: No such file or directory | ... Caused by: 6a77cff ("objtool: Move synced files to their original relative locations") Use the proper arch header files location, not the host-arch location. Bisected-by: Stephen Rothwell <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Linux-Next Mailing List <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/20171108030152.bd76eahiwjwjt3kp@treble Signed-off-by: Ingo Molnar <[email protected]>
1 parent 3bd51c5 commit 9eb7198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/objtool/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ all: $(OBJTOOL)
2727

2828
INCLUDES := -I$(srctree)/tools/include \
2929
-I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \
30-
-I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include
30+
-I$(srctree)/tools/objtool/arch/$(ARCH)/include
3131
WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed
3232
CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES)
3333
LDFLAGS += -lelf $(LIBSUBCMD)

0 commit comments

Comments
 (0)