fwupd: add conditional runtime dependency to udisks2

fwupdtool uses udisks2 to setup access to ESP partition.
udisks2 depends on polkit feature so make the dependency
conditional in fwupd too. The dependency is not needed
for all usecases.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Mikko Rapeli authored and Khem Raj committed 2025-07-10 10:46:22 -07:00
1 parent 738d27a759
commit 48bef05c83
1 file changed
+3
@@ -85,4 +85,7 @@ FILES:${PN}-ptest += "${libexecdir}/installed-tests/ \
${datadir}/installed-tests/"
RDEPENDS:${PN}-ptest += "gnome-desktop-testing python3"
# ESP mounting, not strictly necessary
RRECOMMENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'udisks2', '', d)}"
INSANE_SKIP:${PN}-ptest += "buildpaths"