diff mbox series

[1/2] initramfs-framework: fix dependencies

Message ID 20261124193843.3572691-1-u.oelmann@pengutronix.de
State New
Headers show
Series [1/2] initramfs-framework: fix dependencies | expand

Commit Message

Ulrich Ölmann Nov. 24, 2026, 7:38 p.m. UTC
As can be seen from the PACKAGES list, there is no package named ${PN}.
Therefore, the dependency on VIRTUAL-RUNTIME_base-utils, as introduced by [1]
and updated by [2], and the recommendation for VIRTUAL-RUNTIME_base-utils-
syslog, as added by [3], had no effect.

This dependency and recommendation were presumably intended for the base
package, so assign them to ${PN}-base instead.

Note: The missing dependency on VIRTUAL-RUNTIME_base-utils, which defaults to
"busybox" in default-providers.inc, is hidden in OE-Core's initramfs recipes
because they explicitly list it again in their list of packages to be installed.
Fixing the recommendation for VIRTUAL-RUNTIME_base-utils-syslog, which defaults
to "busybox-syslog" in default-providers.inc, may now add that package to the
initramfs.

[1] 8c9a604d3ef3 ("initramfsframework: Improve RDEPENDS to be package specific")
[2] f0f7062e9aa5 ("initramfs-framework_1.0:replace busybox for variable.")
[3] 544ade2d78f1 ("busybox/packagegroups: Break out the busybox-syslog dependency")

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
index 2c5ff108138f..1fe7ec9b5e2c 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
@@ -1,8 +1,8 @@ 
 SUMMARY = "Modular initramfs system"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
-RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}"
+RDEPENDS:${PN}-base += "${VIRTUAL-RUNTIME_base-utils}"
+RRECOMMENDS:${PN}-base = "${VIRTUAL-RUNTIME_base-utils-syslog}"
 
 SRC_URI = "file://init \
            file://exec \