[PATCH 0/2][Hirsute] Skip udeb builds by default

Dimitri John Ledkov xnox at ubuntu.com
Tue Feb 9 12:23:37 UTC 2021


The attached patches refactor the disable_d_i option into do_di option.

Then it makes the build more sensitive to such a setting, including
removing all udebs from generated debian/control and skipping
kernel-wedge build-dep if do_di=false. With default in the first patch
remaining to do_di=true (apart from riscv64, where we have never
published di).

The second patch changes the default to do_di=false. This way all
builds by default will be done without udebs.

However when the unstable kernel eventually makes its way to be hwe
kernel, we will have the ability to flip do_di back to true to
generate udebs in focal.

I have made two sample builds of 5.11.0-8.9 with just the first patch
applied, and separately with both patches applied. You can find these at:

https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4428/+packages
https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4429/+packages

respectively. You will notice that the first build correctly produces
udebs on all arches. And that the second build does not. It makes the
build slightly quicker (7 minutes or more), with less things to upload
and publish (unmeasured amount of time).

The intention for these patches to go into unstable / v5.11 kernel for
hirsute.

Dimitri John Ledkov (2):
  UBUNTU: [Packaging] rules -- filter out udebs when not needed
  UBUNTU: [Packaging] rules - build without udebs by default.

 debian.master/control.stub.in            |  1 +
 debian.master/rules.d/riscv64.mk         |  1 +
 debian/rules                             | 17 +++++++++++++---
 debian/rules.d/5-udebs.mk                |  2 +-
 debian/scripts/misc/kernel-wedge-arch.pl | 26 ------------------------
 5 files changed, 17 insertions(+), 30 deletions(-)
 delete mode 100755 debian/scripts/misc/kernel-wedge-arch.pl

-- 
2.27.0




More information about the kernel-team mailing list