[Unstable][PATCH 2/6] UBUNTU: [Debian]: Handle debug symbols for modules in extras too
Mauricio Faria de Oliveira
mfo at canonical.com
Wed Aug 28 12:26:00 UTC 2019
BugLink: https://bugs.launchpad.net/bugs/1840704
The debug symbols section only searches for modules in the
'$(pkgdir)' path (in linux-modules package) but not in the
'$(pkdir_ex)' path (in linux-modules-extra).
Thus, modules in the extras package have no '.gnu_debuglink'.
Fix it by searching in $(pkgdir_ex) too if extras is enabled.
Signed-off-by: Mauricio Faria de Oliveira <mfo at canonical.com>
---
debian/rules.d/2-binary-arch.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 730373e93e53..ff6e35b697e2 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -282,7 +282,9 @@ ifneq ($(skipdbg),true)
INSTALL_MOD_PATH=$(dbgpkgdir)/usr/lib/debug
# Add .gnu_debuglink sections to each stripped .ko
# pointing to unstripped verson
- find $(pkgdir) -name '*.ko' | while read path_module ; do \
+ find $(pkgdir) \
+ $(if $(filter true,$(do_extras_package)),$(pkgdir_ex)) \
+ -name '*.ko' | while read path_module ; do \
module="/lib/modules/$${path_module#*/lib/modules/}"; \
if [[ -f "$(dbgpkgdir)/usr/lib/debug/$$module" ]] ; then \
$(CROSS_COMPILE)objcopy \
--
2.17.1
More information about the kernel-team
mailing list