From: Vincent Davis Jr <vince@underview.tech>
To: openembedded-core@lists.openembedded.org
Cc: Vincent Davis Jr <vince@underview.tech>
Subject: [PATCH v3 01/24] bitbake: globally define KERNEL_PACKAGE_NAME
Date: Sun, 12 Jul 2026 10:28:53 -0400 [thread overview]
Message-ID: <20260712142916.2573370-1-vince@underview.tech> (raw)
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
next reply other threads:[~2026-07-12 14:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-12 14:28 Vincent Davis Jr [this message]
2026-07-12 14:28 ` [PATCH v3 02/24] kernel: dont set WORKDIR if KERNEL_PACKAGE_NAME changes Vincent Davis Jr
2026-07-12 14:28 ` [PATCH v3 03/24] kernel: remove setting of KERNEL_PACKAGE_NAME Vincent Davis Jr
2026-07-12 14:28 ` [PATCH v3 04/24] machine: rename kernel prefix Vincent Davis Jr
2026-07-12 14:28 ` [PATCH v3 05/24] core-image-kernel-dev: " Vincent Davis Jr
2026-07-12 14:28 ` [PATCH v3 06/24] packagegroup-self-hosted: " Vincent Davis Jr
2026-07-12 14:28 ` [PATCH v3 07/24] packagegroup-core-boot: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 08/24] packagegroup-base: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 09/24] ofono: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 10/24] iptables: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 11/24] watchdog: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 12/24] nfs-utils: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 13/24] mdadm: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 14/24] systemd: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 15/24] util-linux: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 16/24] connman: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 17/24] hwlatdetect: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 18/24] v86d: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 19/24] efivar: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 20/24] parted: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 21/24] ltp: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 22/24] libnl: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 23/24] linux-kernel-base: " Vincent Davis Jr
2026-07-12 14:29 ` [PATCH v3 24/24] perf: disable discarded-qualifiers checks Vincent Davis Jr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260712142916.2573370-1-vince@underview.tech \
--to=vince@underview.tech \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox