All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 01/27] bitbake: globally define KERNEL_PACKAGE_NAME
@ 2026-07-12 18:42 Vincent Davis Jr
  2026-07-12 18:42 ` [PATCH v4 02/27] kernel: dont set WORKDIR if KERNEL_PACKAGE_NAME changes Vincent Davis Jr
                   ` (27 more replies)
  0 siblings, 28 replies; 32+ messages in thread
From: Vincent Davis Jr @ 2026-07-12 18:42 UTC (permalink / raw)
  To: openembedded-core; +Cc: Vincent Davis Jr

A number of recipes rely on hard coded
kernel prefix set by KERNEL_PACKAGE_NAME
when including modules. This leads to build
time failures such as.

ERROR: Nothing RPROVIDES 'kernel-module-*'

Commit globally defines variable so that
recipes aren't reliant on hardcoded 'kernel'
prefix.

Commit also updates variables

STAGING_KERNEL_DIR
STAGING_KERNEL_BUILDDIR

STAGING_KERNEL_DIR and STAGING_KERNEL_BUILDDIR get
changed from default defined in bitbake.conf in
the kernel.bbclass. The reason was to set these
variables to directories under WORKDIR in alternate
kernel recipes (I.e. where KERNEL_PACKAGE_NAME != kernel)
so that they may build in parallel with the default
kernel without clobbering. The issue is that the variables
only get changed in kernel recipes. So, other recipes
such as perf and make-mod-scripts don't know the
location of virtual/kernel WORKDIR.

Solution is to include KERNEL_PACKAGE_NAME in
STAGING_KERNEL_DIR and STAGING_KERNEL_BUILDDIR
so recipes like perf and make-mod-scripts can
find virtual/kernel source and solve the
clobbering of build artifacts issue.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
 meta/conf/bitbake.conf | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index bdf37d0da2..569b83a138 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -479,6 +479,9 @@ SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}"
 # Kernel info.
 ##################################################################
 
+# Globally define base string for kernel packages
+KERNEL_PACKAGE_NAME ??= "kernel"
+
 OLDEST_KERNEL = "5.15"
 
 # SDK_OLDEST_KERNEL can't be set using overrides since there are
@@ -490,8 +493,8 @@ SDK_OLDEST_KERNEL = "3.2.0"
 # they are staged.
 KERNEL_SRC_PATH = "/usr/src/kernel"
 
-STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source"
-STAGING_KERNEL_BUILDDIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-build-artifacts"
+STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/${KERNEL_PACKAGE_NAME}/kernel-source"
+STAGING_KERNEL_BUILDDIR = "${TMPDIR}/work-shared/${MACHINE}/${KERNEL_PACKAGE_NAME}/kernel-build-artifacts"
 
 ##################################################################
 # Specific image creation and rootfs population info.
-- 
2.43.0



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

end of thread, other threads:[~2026-07-13 17:06 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12 18:42 [PATCH v4 01/27] bitbake: globally define KERNEL_PACKAGE_NAME Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 02/27] kernel: dont set WORKDIR if KERNEL_PACKAGE_NAME changes Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 03/27] kernel: remove setting of KERNEL_PACKAGE_NAME Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 04/27] machine: rename kernel prefix Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 05/27] core-image-kernel-dev: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 06/27] packagegroup-self-hosted: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 07/27] packagegroup-core-boot: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 08/27] packagegroup-base: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 09/27] ofono: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 10/27] iptables: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 11/27] watchdog: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 12/27] nfs-utils: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 13/27] mdadm: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 14/27] systemd: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 15/27] util-linux: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 16/27] connman: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 17/27] hwlatdetect: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 18/27] v86d: " Vincent Davis Jr
2026-07-12 18:42 ` [PATCH v4 19/27] efivar: " Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 20/27] parted: " Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 21/27] ltp: " Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 22/27] libnl: " Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 23/27] linux-kernel-base: " Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 24/27] perf: disable discarded-qualifiers checks Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 25/27] linux-yocto-fitimage: add KERNEL_PACKAGE_NAME prefix Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 26/27] make-mod-scripts: " Vincent Davis Jr
2026-07-12 18:43 ` [PATCH v4 27/27] kernelsrc: " Vincent Davis Jr
2026-07-12 20:39 ` [OE-core] [PATCH v4 01/27] bitbake: globally define KERNEL_PACKAGE_NAME Bruce Ashfield
2026-07-12 21:38   ` Vincent Davis
     [not found]   ` <18C1A8990286DFDF.2110461@lists.openembedded.org>
2026-07-12 21:56     ` Vincent Davis
     [not found]     ` <18C1A99E719D8F0B.2110461@lists.openembedded.org>
2026-07-12 22:43       ` Vincent Davis
2026-07-13 17:06 ` Peter Kjellerstedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.