diff options
author | Marc Ferland <marc.ferland@sonatest.com> | 2024-12-12 14:40:46 -0500 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-12-12 11:47:51 -0800 |
commit | bd1168ab0d8f90cedd143400251e7e6dba16751e (patch) | |
tree | ce9fd2e1ebf3ea58065cf1ead58d303adf0c9e4b | |
parent | f929ae2a085b68d4b25dbe8ffa30a91f13d3aaf0 (diff) | |
download | meta-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.bb | 4 |
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 | ||
25 | inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd | 25 | inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd |
26 | 26 | ||
27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}" |
28 | PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist" | 28 | PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist" |
29 | PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd" | 29 | PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd" |
30 | PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit" | ||
30 | 31 | ||
31 | EXTRA_OEMESON = " \ | 32 | EXTRA_OEMESON = " \ |
32 | -Dos_backend=linux \ | 33 | -Dos_backend=linux \ |
@@ -41,6 +42,7 @@ RDEPENDS:${PN} += "dbus" | |||
41 | RRECOMMENDS:${PN} += "pm-utils" | 42 | RRECOMMENDS:${PN} += "pm-utils" |
42 | FILES:${PN} += " \ | 43 | FILES:${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 | ||