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

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


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

vmlinux is ignored due to missing parentheses. Fix that.

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

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index ff6a26e91599..6bb33406d554 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -66,7 +66,7 @@ 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 {} \; | \
+	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