From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-core@lists.openembedded.org
Cc: Denys Dmytriyenko <denys@konsulko.com>
Subject: [RFC PATCH 5/5] packagegroups, dpkg: extend musl conditionals to baremetal
Date: Wed, 1 Oct 2025 20:08:10 -0400 [thread overview]
Message-ID: <20251002000810.226673-5-denis@denix.org> (raw)
In-Reply-To: <20251002000810.226673-1-denis@denix.org>
From: Denys Dmytriyenko <denys@konsulko.com>
Some packagegroups have conditional inclusion of packages based on
their compatibility with specific libc providers. Add baremetal
config, which is mostly similar to musl, that baremetal uses as libc.
[YOCTO #15982]
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
meta/recipes-core/packagegroups/packagegroup-core-sdk.bb | 1 +
.../packagegroups/packagegroup-core-tools-profile.bb | 2 ++
.../packagegroups/packagegroup-core-tools-testapps.bb | 1 +
meta/recipes-devtools/dpkg/dpkg.inc | 1 +
4 files changed, 5 insertions(+)
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
index e6d704b5ba..2fd815508f 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
@@ -42,6 +42,7 @@ SANITIZERS:nios2 = ""
SANITIZERS:riscv64 = ""
SANITIZERS:riscv32 = ""
SANITIZERS:libc-musl = ""
+SANITIZERS:libc-baremetal = ""
RRECOMMENDS:packagegroup-core-sdk = "\
libgomp \
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
index 9c09f5ab44..501559771e 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
@@ -28,6 +28,7 @@ PERF:riscv32 = ""
# systemtap needs elfutils which is not fully buildable on some arches/libcs
SYSTEMTAP = "systemtap"
SYSTEMTAP:libc-musl = ""
+SYSTEMTAP:libc-baremetal = ""
SYSTEMTAP:nios2 = ""
SYSTEMTAP:riscv32 = ""
@@ -41,6 +42,7 @@ BABELTRACE2 = "babeltrace2"
VALGRIND = "valgrind"
VALGRIND:libc-musl = ""
+VALGRIND:libc-baremetal = ""
VALGRIND:mipsarch = ""
VALGRIND:nios2 = ""
VALGRIND:arc = ""
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
index 25561f6878..b77739871e 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb
@@ -17,6 +17,7 @@ KEXECTOOLS:nios2 ?= ""
KEXECTOOLS:riscv64 ?= ""
KEXECTOOLS:riscv32 ?= ""
KEXECTOOLS:loongarch64 ?= ""
+KEXECTOOLS:libc-baremetal ?= ""
# go does not support ppc32, only ppc64
# https://github.com/golang/go/issues/22885
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index b4e9667107..e091fdb5cd 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -116,6 +116,7 @@ ALTERNATIVE_PRIORITY = "100"
EXTRA_RDPENDS = "ldconfig"
EXTRA_RDPENDS:libc-musl = ""
+EXTRA_RDPENDS:libc-baremetal = ""
RDEPENDS:${PN} += "${PN}-start-stop ${EXTRA_RDPENDS}"
BBCLASSEXTEND = "native nativesdk"
--
2.25.1
prev parent reply other threads:[~2025-10-02 0:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 0:08 [RFC PATCH 1/5] baremetal, linux-dummy: bypass kernel dependencies for baremetal Denys Dmytriyenko
2025-10-02 0:08 ` [RFC PATCH 2/5] glibc: skip also on baremetal Denys Dmytriyenko
2025-10-02 0:08 ` [RFC PATCH 3/5] musl: set compatibility a bit more flexible Denys Dmytriyenko
2025-10-02 2:12 ` [OE-core] " Khem Raj
2025-10-02 14:04 ` Denys Dmytriyenko
2025-10-02 17:23 ` Khem Raj
2025-10-02 19:31 ` Denys Dmytriyenko
2025-10-02 0:08 ` [RFC PATCH 4/5] newlib: mark as incompatible with baremetal, which uses musl Denys Dmytriyenko
2025-10-02 0:08 ` Denys Dmytriyenko [this message]
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=20251002000810.226673-5-denis@denix.org \
--to=denis@denix.org \
--cc=denys@konsulko.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