summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-08-04 17:31:03 +0100
committerMark Brown <broonie@kernel.org>2026-08-04 17:31:03 +0100
commit4afd4ac3642a8ff73af331079b0fc0b0ccd0a3df (patch)
treea25bd021cf5212e413c4a4883d6e0baa7ef2d64f /scripts
parentcf07f148068cdfdc29580da445f3cc3ce429f764 (diff)
parent94648dc65e66dbdb318a96a132f652a53d62cea1 (diff)
downloadlinux-4afd4ac3642a8ff73af331079b0fc0b0ccd0a3df.tar.gz
linux-4afd4ac3642a8ff73af331079b0fc0b0ccd0a3df.zip
ASoC: SOF: ipc4-topology: Pipeline params improvements
Peter Ujfalusi <peter.ujfalusi@linux.intel.com> says: Improve handling of some corner cases that are not used by current topology designs, but can be crafted within the rules of a topology file. For example branching topologies, where a single input routed to multiple output endpoints. The already configured part of the graph places constraint on how the new branch can be configured. Handling of process modules also updated to be able to 'guess' what parameters can be changed by the module and allow flexible operation. Link: https://patch.msgid.link/20260730121729.18673-1-peter.ujfalusi@linux.intel.com
Diffstat (limited to 'scripts')
-rw-r--r--scripts/package/kernel.spec11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
index c732415662ef..46e80970f723 100644
--- a/scripts/package/kernel.spec
+++ b/scripts/package/kernel.spec
@@ -67,7 +67,18 @@ This package provides debug information for the kernel image and modules from th
%undefine _unique_debug_srcs
%undefine _debugsource_packages
%undefine _debuginfo_subpackages
+
+# Preserve .BTF and .BTF.base sections in kernel modules during debuginfo
+# stripping. find-debuginfo.sh uses eu-strip which removes non-allocated ELF
+# sections like .BTF by default. .BTF.base is required for BTF distillation
+# support; without it, module BTF validation fails.
+%global with_keep_section %(%{__find_debuginfo} --help 2>&1 | grep -c keep-section)
+%if %{with_keep_section}
+%global _find_debuginfo_opts -r --keep-section .BTF --keep-section .BTF.base
+%else
%global _find_debuginfo_opts -r
+%endif
+
%global _missing_build_ids_terminate_build 1
%global _no_recompute_build_ids 1
%{debug_package}