summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schilling <erik@riscstar.com>2025-04-25 20:49:37 +0200
committerKhem Raj <raj.khem@gmail.com>2025-04-25 14:47:12 -0700
commit4aa12df389277a583a90c0e26ff41f51060bf327 (patch)
tree15f7f090b64fbd5c1fae228789209f05b8f382f8
parenta056a834c49522f1ab6a9eb7ccf344749cd26160 (diff)
downloadmeta-openembedded-4aa12df389277a583a90c0e26ff41f51060bf327.tar.gz
zram: fix RDEPENDS for systemd service
This attempted to pull in the entirety of util-linux when systemd is selected. That falls apart when building with `NO_RECOMMENDATIONS = "1"` as util-linux only weakly recommends util-linux-zramctl. Hence, we want to pull that in explicitly. Signed-off-by: Erik Schilling <erik@riscstar.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/zram/zram_0.2.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/zram/zram_0.2.bb b/meta-oe/recipes-extended/zram/zram_0.2.bb
index 89292118d0..e4522f89a1 100644
--- a/meta-oe/recipes-extended/zram/zram_0.2.bb
+++ b/meta-oe/recipes-extended/zram/zram_0.2.bb
@@ -4,8 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
4 4
5inherit update-rc.d systemd 5inherit update-rc.d systemd
6 6
7RDEPENDS:${PN} = "kmod \ 7RDEPENDS:${PN} = "kmod util-linux-swaponoff \
8 ${@bb.utils.contains('DISTRO_FEATURES','systemd','util-linux','util-linux-swaponoff',d)}" 8 ${@bb.utils.contains('DISTRO_FEATURES','systemd','util-linux-zramctl','',d)}"
9RRECOMMENDS:${PN} = "kernel-module-zram" 9RRECOMMENDS:${PN} = "kernel-module-zram"
10 10
11 11