[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200127193549.187419-2-brendanhiggins@google.com>
Date: Mon, 27 Jan 2020 11:35:48 -0800
From: Brendan Higgins <brendanhiggins@...gle.com>
To: jdike@...toit.com, richard@....at, anton.ivanov@...bridgegreys.com,
akpm@...ux-foundation.org, changbin.du@...el.com,
yamada.masahiro@...ionext.com, rdunlap@...radead.org,
keescook@...omium.org, andriy.shevchenko@...ux.intel.com
Cc: linux-um@...ts.infradead.org, linux-kernel@...r.kernel.org,
davidgow@...gle.com, heidifahim@...gle.com,
Brendan Higgins <brendanhiggins@...gle.com>
Subject: [RFC v1 1/2] kbuild: add arch specific dependency for BTF support
Some archs (like UM) do not build with CONFIG_DEBUG_INFO_BTF=y, so add
an options for archs to select to opt-in or out of BTF typeinfo support.
Signed-off-by: Brendan Higgins <brendanhiggins@...gle.com>
---
lib/Kconfig.debug | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index e4676b992eae9..f5bcb391f1b7d 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -238,9 +238,12 @@ config DEBUG_INFO_DWARF4
But it significantly improves the success of resolving
variables in gdb on optimized code.
+config ARCH_NO_BTF_TYPEINFO
+ bool
+
config DEBUG_INFO_BTF
bool "Generate BTF typeinfo"
- depends on DEBUG_INFO
+ depends on DEBUG_INFO && !ARCH_NO_BTF_TYPEINFO
help
Generate deduplicated BTF type information from DWARF debug info.
Turning this on expects presence of pahole tool, which will convert
--
2.25.0.341.g760bfbb309-goog
Powered by blists - more mailing lists