From: Claudius Heine <ch@denx.de>
To: isar-users@googlegroups.com
Cc: Claudius Heine <ch@denx.de>
Subject: [PATCH 1/2] meta/bitbake.conf: add MACHINEOVERRIDES and DISTROOVERRIDES
Date: Thu, 17 Aug 2023 15:57:24 +0200 [thread overview]
Message-ID: <20230817135725.2524796-2-ch@denx.de> (raw)
In-Reply-To: <20230817135725.2524796-1-ch@denx.de>
Replacing MACHINE and DISTRO in the OVERRIDES variable with
MACHINEOVERRIDES and DISTROOVERRIDES allows to configure machine or
distro compatibilities by prepending to those variables.
This is smilar to how OE handles this.
In Isar, not setting the DISTRO variable is not supported, therefore we
don't need a inline python function for it.
Signed-off-by: Claudius Heine <ch@denx.de>
---
meta/conf/bitbake.conf | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index c122914b..2398a21b 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -72,7 +72,9 @@ KERNEL_FILE:mipsel ?= "vmlinux"
KERNEL_FILE:riscv64 ?= "vmlinux"
KERNEL_FILE:arm64 ?= "vmlinux"
-OVERRIDES = "${PACKAGE_ARCH}:${MACHINE}:${DISTRO}:${BASE_DISTRO_CODENAME}:forcevariable"
+MACHINEOVERRIDES ?= "${MACHINE}"
+DISTROOVERRIDES ?= "${DISTRO}"
+OVERRIDES = "${PACKAGE_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${BASE_DISTRO_CODENAME}:forcevariable"
FILESOVERRIDES = "${PACKAGE_ARCH}:${MACHINE}"
# Setting default QEMU_ARCH variables for different DISTRO_ARCH:
--
2.30.2
next prev parent reply other threads:[~2023-08-17 13:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 13:57 [PATCH 0/2] Integrate compatibiliy systems Claudius Heine
2023-08-17 13:57 ` Claudius Heine [this message]
2023-08-17 13:57 ` [PATCH 2/2] meta/base.bbclass: integrate COMPATIBLE_MACHINE feature Claudius Heine
2023-08-17 14:06 ` Anton Mikanovich
2023-08-17 14:45 ` Claudius Heine
2023-08-17 14:49 ` Anton Mikanovich
2023-08-23 7:53 ` Uladzimir Bely
2023-08-17 14:09 ` [PATCH 0/2] Integrate compatibiliy systems Anton Mikanovich
2023-08-17 14:48 ` Baurzhan Ismagulov
2023-08-17 15:00 ` Claudius Heine
2023-08-17 15:05 ` Baurzhan Ismagulov
2023-08-24 15:15 ` Uladzimir Bely
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=20230817135725.2524796-2-ch@denx.de \
--to=ch@denx.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