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 2025-07-10 11:54:38 +03:00 committed by Khem Raj
parent 738d27a759
commit 48bef05c83
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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"