mbox series

[v2,0/5] Fix single-name single-content rule for kernel packages

Message ID 20260817113420.750731-1-felix.moessbauer@siemens.com
Headers show
Series Fix single-name single-content rule for kernel packages | expand

Message

Felix Moessbauer Aug. 17, 2026, 11:34 a.m. UTC
Similar to upstream Debian, our kernel source packages are architecture
specific. By that, we also have to encode the architecture (or machine)
in the name of the package. Otherwise existing packages might get
reused on rebuilds with other targets (or multiarch)

In isar, this has ever been modeled incorrectly (the kernels .dsc file
was arch=any despite being arch specific). This is easy to fix, but
also depending on the kernels was done incorrectly (a KERNEL_NAME =
mainline is not specific enough, as mainline on arm64 is technically a
different kernel (source package) than mainline on amd64.

Patch 5 carries the implementation of option (1) from [1].

[1] https://groups.google.com/g/isar-users/c/JmB2FuEXZBU/m/azKokFVsAwAJ

The series has been tested in -t cross, -t kernel CI.

Changes since v1:

- no functional change
- rework API changelog and user manual

Best regards,
Felix Moessbauer
Siemens AG

Felix Moessbauer (5):
  testsuite: make test_libc_dev_deploy KERNEL_NAME agnostic
  kernel: bind x86_64_defconfig to amd64 architecture instead of machine
  kernel: make source package architecture specific
  kernel: move common parts of linux-mainline to inc
  kernel: use architecture specific names for kernels

 RECIPE-API-CHANGELOG.md                       |  3 ++
 doc/user_manual.md                            | 13 +++++-
 meta-isar/conf/machine/beagleplay.conf        |  2 +-
 meta-isar/conf/machine/de0-nano-soc.conf      |  2 +-
 meta-isar/conf/machine/hikey.conf             |  2 +-
 meta-isar/conf/machine/qemuamd64-cip.conf     |  2 +-
 meta-isar/conf/machine/sifive-fu540.conf      |  2 +-
 meta-isar/conf/machine/stm32mp15x.conf        |  2 +-
 .../linux/linux-cip_4.4.166-cip29.bb          |  5 ++-
 .../recipes-kernel/linux/linux-mainline.inc   | 45 +++++++++++++++++++
 .../linux/linux-mainline_6.12.85.bb           | 39 +---------------
 .../recipes-kernel/linux/linux-phy_6.12.85.bb |  2 +-
 meta/classes-recipe/linux-kernel.bbclass      |  3 +-
 .../linux-module/files/debian/control.tmpl    |  2 +-
 .../linux/files/debian/control.tmpl           | 10 ++---
 testsuite/citest.py                           | 23 +++++++---
 16 files changed, 97 insertions(+), 60 deletions(-)
 create mode 100644 meta-isar/recipes-kernel/linux/linux-mainline.inc