From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [RFC 2/4] meta/conf/bitbake.conf: Set global BPN
Date: Fri, 16 Feb 2024 16:34:24 +0200 [thread overview]
Message-ID: <20240216143426.3490967-3-amikan@ilbers.de> (raw)
In-Reply-To: <20240216143426.3490967-1-amikan@ilbers.de>
Declare default BPN value in bitbake.conf without duplicating in every
recipe just like it is implemented in OE.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta/classes/multiarch.bbclass | 2 --
meta/classes/sdk.bbclass | 1 -
meta/conf/bitbake.conf | 1 +
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/meta/classes/multiarch.bbclass b/meta/classes/multiarch.bbclass
index d1bad652..785a0f26 100644
--- a/meta/classes/multiarch.bbclass
+++ b/meta/classes/multiarch.bbclass
@@ -3,8 +3,6 @@
#
# SPDX-License-Identifier: MIT
-BPN = "${PN}"
-
inherit compat
python() {
# provide compat only when we can build it
diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass
index 52c3bec5..a81d69cd 100644
--- a/meta/classes/sdk.bbclass
+++ b/meta/classes/sdk.bbclass
@@ -9,7 +9,6 @@ inherit crossvars
# hook up the -sdk image variant
BBCLASSEXTEND = "sdk"
-BPN = "${PN}"
python sdk_virtclass_handler() {
pn = e.data.getVar('PN')
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 80dc01c7..7fab8929 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -50,6 +50,7 @@ T = "${WORKDIR}/temp"
TMPDIR = "${TOPDIR}/tmp"
PERSISTENT_DIR = "${TMPDIR}/cache"
GITPKGV = "${@bb.fetch2.get_srcrev(d, 'gitpkgv_revision')}"
+BPN = "${PN}"
# isar specific config
WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}/${PV}-${PR}"
--
2.34.1
next prev parent reply other threads:[~2024-02-16 14:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-16 14:34 [RFC 0/4] Warn on PN usage for virtual packages Anton Mikanovich
2024-02-16 14:34 ` [RFC 1/4] multiarch: Add warning on PN usage fallback Anton Mikanovich
2024-02-16 14:34 ` Anton Mikanovich [this message]
2024-02-16 14:34 ` [RFC 3/4] base: Fix FILESPATH value for -native and -compat Anton Mikanovich
2024-02-16 14:34 ` [RFC 4/4] hello: Use BPN instead of PN Anton Mikanovich
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=20240216143426.3490967-3-amikan@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
/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