upower: add polkit PACKAGECONFIG option

Add a PACKAGECONFIG option for polkit. Activate it when
DISTRO_FEATURES contains 'polkit'.

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Marc Ferland 2024-12-12 14:40:46 -05:00 committed by Khem Raj
parent f929ae2a08
commit bd1168ab0d
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -24,9 +24,10 @@ GTKDOC_MESON_OPTION = "gtk-doc"
inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}"
PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist"
PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd"
PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit"
EXTRA_OEMESON = " \
-Dos_backend=linux \
@ -41,6 +42,7 @@ RDEPENDS:${PN} += "dbus"
RRECOMMENDS:${PN} += "pm-utils"
FILES:${PN} += " \
${datadir}/dbus-1/ \
${datadir}/polkit-1/ \
${base_libdir}/udev/* \
"