[SRU][N][PATCH] UBUNTU: [Packaging] Fix source files collection

Juerg Haefliger juerg.haefliger at canonical.com
Thu Nov 28 07:14:13 UTC 2024


BugLink: https://bugs.launchpad.net/bugs/2089817

vmlinux is ignored due to missing parentheses. Fix that.
While at it, fix the comment to match the other series. Sigh.

Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 6857a12a87e3..51161521cee5 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -44,9 +44,9 @@ ifeq ($(do_dbgsym_package),true)
 	fi
 endif
 
-	# Collect the list of kernel source files used for this build. Need to do this early before
-	# modules are stripped. Fail if the resulting file is empty.
-	find $(builddir)/build-$* -name vmlinux -o -name \*.ko -exec dwarfdump -i {} \; | \
+	# Collect the list of kernel source files used for this build. Need to do this early
+	# before modules are stripped. Fail if the resulting file is empty.
+	find $(builddir)/build-$* \( -name vmlinux -o -name \*.ko \) -exec dwarfdump -i {} \; | \
 		grep -E 'DW_AT_(call|decl)_file' | sed -n 's|.*\s/|/|p' | sort -u > \
 		$(builddir)/build-$*/sources.list
 	test -s $(builddir)/build-$*/sources.list
-- 
2.43.0




More information about the kernel-team mailing list