From: Jagadeesh K <workjagadeesh@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Subject: [OE-core][PATCH v2 1/2] meta-extsdk-toolchain: Install multilib toolchain files in the eSDK if multilib is enabled
Date: Sat, 3 Oct 2026 15:16:10 +0000 [thread overview]
Message-ID: <20261003151611.2218124-2-workjagadeesh@gmail.com> (raw)
In-Reply-To: <20261003151611.2218124-1-workjagadeesh@gmail.com>
From: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
1. Ship multilib virtual/cross-cc, virtual/compilerlibs, and virtual/libc
packages in the eSDK if it is created with multilib configuration. These
packages are required to compile source for multilib using the eSDK.
2. Include multilib tune configuration directory in SPDX_MULTILIB_SSTATE_ARCHS
to search SPDX document as meta-extsdk-toolchain is dependent on multilib recipes.
Changes in v2:
* Replace all_multilib_tune_values() with oe.utils.all_multilib_tune_values()
as functions from utils.bbclass are moved to utils.py.
[YOCTO #14020]
Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
---
.../recipes-core/meta/meta-extsdk-toolchain.bb | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/meta/meta-extsdk-toolchain.bb b/meta/recipes-core/meta/meta-extsdk-toolchain.bb
index 16fe185964..22b8cd045d 100644
--- a/meta/recipes-core/meta/meta-extsdk-toolchain.bb
+++ b/meta/recipes-core/meta/meta-extsdk-toolchain.bb
@@ -2,7 +2,23 @@ SUMMARY = "Extensible SDK toolchain meta-recipe"
DESCRIPTION = "Meta-recipe for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
LICENSE = "MIT"
-DEPENDS = "virtual/libc ${MLPREFIX}gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native"
+
+def add_multilib_depends(d):
+ mlpkgs = ""
+ for v in d.getVar('MULTILIB_VARIANTS').split():
+ localdata = bb.data.createCopy(d)
+ override = ":virtclass-multilib-" + v
+ localdata.setVar("OVERRIDES", localdata.getVar("OVERRIDES", False) + override)
+ for p in localdata.getVar('BASEDEPENDS').split():
+ pkg = localdata.getVar("PREFERRED_PROVIDER_%s" % p)
+ if pkg:
+ mlpkgs = mlpkgs + ' ' + v + '-' + pkg
+ return mlpkgs
+
+DEPENDS = "virtual/libc ${MLPREFIX}gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native ${@add_multilib_depends(d)}"
+
+# Search the SPDX document of multilib recipe in multilib tune configuration directory.
+SPDX_MULTILIB_SSTATE_ARCHS = "${@oe.utils.all_multilib_tune_values(d, 'SSTATE_ARCHS')}"
do_populate_sysroot[deptask] = "do_populate_sysroot"
--
2.39.5
next prev parent reply other threads:[~2026-10-03 15:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-03 15:16 [OE-core][PATCH v2 0/2] Add support to compile source for multilib in the eSDK Jagadeesh K
2026-10-03 15:16 ` Jagadeesh K [this message]
2026-10-03 15:16 ` [OE-core][PATCH v2 2/2] staging: parse multilib sstate manifest files to install multilib packages " Jagadeesh K
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=20261003151611.2218124-2-workjagadeesh@gmail.com \
--to=workjagadeesh@gmail.com \
--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