From: Bruce Ashfield <[email protected]>

pahole doesn't support all architectures or kernel versions. As such
we don't want config_btf to be enabled for all debug kernels.

Moving it to a separate fragment so it can be enabled only when
needed.

Signed-off-by: Bruce Ashfield <[email protected]>
(cherry picked from commit 77e7265c29fc238d1ecd43b47891bb5108c36da2)
Signed-off-by: Wentao Zhang <[email protected]>
---
 features/debug/debug-btf.cfg | 2 ++
 features/debug/debug-btf.scc | 6 ++++++
 2 files changed, 8 insertions(+)
 create mode 100644 features/debug/debug-btf.cfg
 create mode 100644 features/debug/debug-btf.scc

diff --git a/features/debug/debug-btf.cfg b/features/debug/debug-btf.cfg
new file mode 100644
index 00000000..61815776
--- /dev/null
+++ b/features/debug/debug-btf.cfg
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: MIT
+CONFIG_DEBUG_INFO_BTF=y
diff --git a/features/debug/debug-btf.scc b/features/debug/debug-btf.scc
new file mode 100644
index 00000000..57dfb930
--- /dev/null
+++ b/features/debug/debug-btf.scc
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: MIT
+define KFEATURE_DESCRIPTION "Enable BTF debug"
+define KFEATURE_COMPATIBILITY all
+
+include debug-kernel.scc
+kconf non-hardware debug-btf.cfg
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13035): 
https://lists.yoctoproject.org/g/linux-yocto/message/13035
Mute This Topic: https://lists.yoctoproject.org/mt/101161974/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to