diff mbox series

[5/6] builddeb: introduce profile excluding the dbg pkg

Message ID 20210411101422.7092-6-bage@linutronix.de (mailing list archive)
State New
Headers show
Series builddeb: make deb building more flexible | expand

Commit Message

bage@linutronix.de April 11, 2021, 10:14 a.m. UTC
From: Bastian Germann <bage@linutronix.de>

Enabling CONFIG_DEBUG_INFO implies building the binary linux-image-*-dbg.
As this increases package build time significantly, one might want to
exclude it from being built.

Add a pkg.$sourcename.nodbg build profile for that package so it can be
excluded via e.g.: `make DPKG_FLAGS="-P=pkg.linux-5.11.0.nodbg" deb-pkg`

Link: https://wiki.debian.org/BuildProfileSpec
Signed-off-by: Bastian Germann <bage@linutronix.de>
---
 scripts/package/mkdebian | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index bb5c19735345..369a989499ef 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -213,6 +213,7 @@  if is_enabled CONFIG_DEBUG_INFO; then
 cat <<EOF >> debian/control
 
 Package: linux-image-$version-dbg
+Build-Profiles: <!pkg.$sourcename.nodbg>
 Section: debug
 Architecture: $debarch
 Description: Linux kernel debugging symbols for $version