Re: [RFC v5 08/57] objtool: Make ORC support optional

From: Julien Thierry
Date: Thu Jan 23 2020 - 06:45:58 EST




On 1/21/20 4:37 PM, Josh Poimboeuf wrote:
On Thu, Jan 09, 2020 at 04:02:11PM +0000, Julien Thierry wrote:
diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index d2a19b0bc05a..24d653e0b6ec 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -6,6 +6,10 @@ ifeq ($(ARCH),x86_64)
ARCH := x86
endif
+ifeq ($(ARCH),x86)
+OBJTOOL_ORC := y
+endif

I think this should check SRCARCH instead, a la:

https://lkml.kernel.org/r/d5d11370ae116df6c653493acd300ec3d7f5e925.1579543924.git.jpoimboe@xxxxxxxxxx


Yes, thanks for pointing it out.

--
Julien Thierry