summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Ferland <marc.ferland@sonatest.com>2024-12-12 14:40:46 -0500
committerKhem Raj <raj.khem@gmail.com>2024-12-12 11:47:51 -0800
commitbd1168ab0d8f90cedd143400251e7e6dba16751e (patch)
treece9fd2e1ebf3ea58065cf1ead58d303adf0c9e4b
parentf929ae2a085b68d4b25dbe8ffa30a91f13d3aaf0 (diff)
downloadmeta-openembedded-bd1168ab0d8f90cedd143400251e7e6dba16751e.tar.gz
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>
-rw-r--r--meta-oe/recipes-support/upower/upower_1.90.6.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/upower/upower_1.90.6.bb b/meta-oe/recipes-support/upower/upower_1.90.6.bb
index 2cffdc14f6..6d5fa70162 100644
--- a/meta-oe/recipes-support/upower/upower_1.90.6.bb
+++ b/meta-oe/recipes-support/upower/upower_1.90.6.bb
@@ -24,9 +24,10 @@ GTKDOC_MESON_OPTION = "gtk-doc"
24 24
25inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd 25inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd
26 26
27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}"
28PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist" 28PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist"
29PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd" 29PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd"
30PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit"
30 31
31EXTRA_OEMESON = " \ 32EXTRA_OEMESON = " \
32 -Dos_backend=linux \ 33 -Dos_backend=linux \
@@ -41,6 +42,7 @@ RDEPENDS:${PN} += "dbus"
41RRECOMMENDS:${PN} += "pm-utils" 42RRECOMMENDS:${PN} += "pm-utils"
42FILES:${PN} += " \ 43FILES:${PN} += " \
43 ${datadir}/dbus-1/ \ 44 ${datadir}/dbus-1/ \
45 ${datadir}/polkit-1/ \
44 ${base_libdir}/udev/* \ 46 ${base_libdir}/udev/* \
45" 47"
46 48