Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix kernel complementary package installation
@ 2026-09-21 21:50 AdrianF
  2026-09-21 21:50 ` [PATCH 1/2] package: introduce PACKAGE_BASENAME for consistent kernel -src naming AdrianF
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: AdrianF @ 2026-09-21 21:50 UTC (permalink / raw)
  To: openembedded-core; +Cc: Adrian Freihofer

From: Adrian Freihofer <adrian.freihofer@siemens.com>

Recipes usually name the standard packages based on PN. However, the kernel
uses ${KERNEL_PACKAGE_NAME} as the base name for its packages. This causes
inconsistent -src package naming and prevents complementary package
installation from finding the expected kernel packages. For example, a kernel
can produce kernel-dbg and linux-yocto-src, causing rootfs-dbg to include the
linux-yocto-src package but not kernel-dbg.

Introduce PACKAGE_BASENAME so recipes whose package names are based on
something other than PN can generate consistent -src package names and expose
the base name in pkgdata. Update oe-pkgdata-util to use PACKAGE_BASENAME when
resolving complementary package globs, with a fallback to PN for existing
pkgdata.

This is one possible way to handle the kernel-specific package naming. Other
approaches may be possible too. Some ideas:

- Do we really need this KERNEL_PACKAGE_NAME special feature for kernel
  packages? Or would it be possible to stick to ${PN} as any other recipe
  does?
- Is installing the kernel's complementary packages via standard
  complementary package installation the right mechanism for kernel
  packages? Or should there be a different mechanism which is more in line
  with how the kernel usually gets installed where installing it into the
  rootfs as a package is only one way out of many.

Adrian Freihofer (2):
  package: introduce PACKAGE_BASENAME for consistent kernel -src naming
  oe-pkgdata-util: use PACKAGE_BASENAME for glob PN-substitution
    fallback

 meta/classes-global/package.bbclass | 2 +-
 meta/classes-recipe/kernel.bbclass  | 3 +++
 meta/conf/bitbake.conf              | 6 ++++++
 meta/lib/oe/package.py              | 4 +++-
 scripts/oe-pkgdata-util             | 7 ++++++-
 5 files changed, 19 insertions(+), 3 deletions(-)

-- 
2.55.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-09-22 21:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21 21:50 [PATCH 0/2] Fix kernel complementary package installation AdrianF
2026-09-21 21:50 ` [PATCH 1/2] package: introduce PACKAGE_BASENAME for consistent kernel -src naming AdrianF
2026-09-22 17:09   ` [OE-core] " Peter Kjellerstedt
2026-09-22 21:25     ` Richard Purdie
2026-09-21 21:50 ` [PATCH 2/2] oe-pkgdata-util: use PACKAGE_BASENAME for glob PN-substitution fallback AdrianF
2026-09-22  0:44 ` [OE-core] [PATCH 0/2] Fix kernel complementary package installation Bruce Ashfield
2026-09-22  9:02   ` Richard Purdie
2026-09-22 11:46     ` Freihofer, Adrian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox