builddeb: introduce profile excluding the dbg pkg
v2 cover builddeb: introduce profile excluding the dbg pkg
Introduce a Debian build profile to exclude the massive debug package during build. This was sent the first time as part of a patch series:
<[email protected]>
Most of the patch series is included in the current work on mkdebian but this is still missing.
Changelog:
v2:
* Align the profile name with the one that ended up in Debian.
Bastian Germann (1):
builddeb: introduce profile excluding the dbg pkg
scripts/package/mkdebian | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.39.2
PATCH v2 1/1 builddeb: introduce profile excluding the dbg pkg
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 build profile pkg.$sourcename.nokerneldbg for that package so it can be excluded via e.g.make DPKG_FLAGS="-P=pkg.linux-upstream.nokerneldbg" deb-pkg
The name is the same that is used in Debian's linux package since version 5.17~rc4-1~exp1.
--- scripts/package/mkdebian | 1 + 1 file changed, 1 insertion(+)
scripts/package/mkdebian +1 -0
@@ -227,6 +227,7 @@ if is_enabled CONFIG_DEBUG_INFO; then cat <<EOF >> debian/control Package: linux-image-$version-dbg +Build-Profiles: <!pkg.$sourcename.nokerneldbg> Section: debug Architecture: $debarch Description: Linux kernel debugging symbols for $version
Signature · 1 line
2.39.2
Quoted 4 lines · Bastian Germann
Enabling
CONFIG_DEBUG_INFOimplies building the binary linux-image-*-dbg. As this increases package build time significantly, one might want to exclude it from being built.
Did you confirm if this patch saved the build time in any way? If so, please provide me with the steps to test it.
Quoted 4 lines
Add build profile pkg.$sourcename.nokerneldbg for that package so it can be excluded via e.g.
make DPKG_FLAGS="-P=pkg.linux-upstream.nokerneldbg" deb-pkg
The correct command is:
make DPKG_FLAGS="-Ppkg.linux-upstream.nokerneldbg" deb-pkg
-P<profile> (without '=' for the short option)
or
--build-profiles=<profile> (with '=' for the long option)
I will postpone this because just adding Build-Profiles does nothing.
Quoted 24 lines
The name is the same that is used in Debian's linux package since version 5.17~rc4-1~exp1.
Signed-off-by Bastian Germann <[email protected]>--- scripts/package/mkdebian | 1 + 1 file changed, 1 insertion(+)scripts/package/mkdebian +1
-1@@ -227,6 +227,7 @@ if is_enabled CONFIG_DEBUG_INFO; then cat <<EOF >> debian/control Package: linux-image-$version-dbg +Build-Profiles: <!pkg.$sourcename.nokerneldbg> Section: debug Architecture: $debarch Description: Linux kernel debugging symbols for $version --
Quoted 2 lines
2.39.2
--
Best Regards
Masahiro Yamada