From: Vincent Davis Jr <vince@underview.tech>
To: openembedded-core@lists.openembedded.org
Cc: Vincent Davis Jr <vince@underview.tech>
Subject: [PATCH v4 02/27] kernel: dont set WORKDIR if KERNEL_PACKAGE_NAME changes
Date: Sun, 12 Jul 2026 14:42:42 -0400 [thread overview]
Message-ID: <20260712184307.3259642-2-vince@underview.tech> (raw)
In-Reply-To: <20260712184307.3259642-1-vince@underview.tech>
Setting WORKDIR in the kernel recipes if
KERNEL_PACKAGE_NAME changes to the WORKDIR
of the recipe leads to other recipes such
as perf and make-mod-scripts build errors.
As they rely on globally set variables to
determine the location of the kernel-source.
Commit also removes KERNEL_PACKAGE_NAME variable
as it's set globally in bitbake.conf.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
meta/classes-recipe/kernel.bbclass | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 48e394b650..d8d44de27b 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -12,7 +12,6 @@ COMPATIBLE_HOST = ".*-linux"
REQUIRED_TUNE_FEATURES:riscv32 = "rv 32 i m a zicsr zifencei"
REQUIRED_TUNE_FEATURES:riscv64 = "rv 64 i m a zicsr zifencei"
-KERNEL_PACKAGE_NAME ??= "kernel"
KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }"
PROVIDES += "virtual/kernel"
@@ -67,18 +66,6 @@ python __anonymous () {
bb.warn("Some packages (E.g. *-dev) might be missing due to "
"bug 11905 (variable KERNEL_PACKAGE_NAME == PN)")
- # The default kernel recipe builds in a shared location defined by
- # bitbake/distro confs: STAGING_KERNEL_DIR and STAGING_KERNEL_BUILDDIR.
- # 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.
- if kpn != "kernel":
- workdir = d.getVar("WORKDIR")
- sourceDir = os.path.join(workdir, 'kernel-source')
- artifactsDir = os.path.join(workdir, 'kernel-build-artifacts')
- d.setVar("STAGING_KERNEL_DIR", sourceDir)
- d.setVar("STAGING_KERNEL_BUILDDIR", artifactsDir)
-
# Merge KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE into KERNEL_IMAGETYPES
type = d.getVar('KERNEL_IMAGETYPE') or ""
alttype = d.getVar('KERNEL_ALT_IMAGETYPE') or ""
--
2.43.0
next prev parent reply other threads:[~2026-07-12 18:43 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-12 18:42 [PATCH v4 01/27] bitbake: globally define KERNEL_PACKAGE_NAME Vincent Davis Jr
2026-07-12 18:42 ` Vincent Davis Jr [this message]
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
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=20260712184307.3259642-2-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