mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
lvm2: Add a PACKAGECONFIG for dmeventd
This allows the support for dmeventd to be disabled. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
698d512877
commit
62ee47f2c9
@@ -17,7 +17,7 @@ S = "${WORKDIR}/LVM2.${PV}"
|
||||
|
||||
inherit autotools-brokensep pkgconfig systemd
|
||||
|
||||
LVM2_PACKAGECONFIG = ""
|
||||
LVM2_PACKAGECONFIG = "dmeventd"
|
||||
LVM2_PACKAGECONFIG_append_class-target = " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
|
||||
thin-provisioning-tools \
|
||||
@@ -32,6 +32,7 @@ PACKAGECONFIG ??= "${LVM2_PACKAGECONFIG}"
|
||||
# upstream...
|
||||
PACKAGECONFIG_append = " odirect"
|
||||
|
||||
PACKAGECONFIG[dmeventd] = "--enable-dmeventd,--disable-dmeventd"
|
||||
PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct"
|
||||
PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
||||
@@ -45,7 +46,6 @@ EXTRA_OECONF = "--with-user= \
|
||||
--enable-applib \
|
||||
--enable-cmdlib \
|
||||
--enable-pkgconfig \
|
||||
--enable-dmeventd \
|
||||
--enable-lvmetad \
|
||||
--with-usrlibdir=${libdir} \
|
||||
--with-systemdsystemunitdir=${systemd_system_unitdir} \
|
||||
@@ -74,8 +74,9 @@ do_install_append() {
|
||||
}
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}"
|
||||
SYSTEMD_SERVICE_${PN} = "lvm2-monitor.service dm-event.socket dm-event.service lvm2-lvmetad.socket \
|
||||
lvm2-pvscan@.service blk-availability.service"
|
||||
SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'dmeventd', 'lvm2-monitor.service dm-event.socket dm-event.service', '', d)} \
|
||||
lvm2-lvmetad.socket lvm2-pvscan@.service \
|
||||
blk-availability.service"
|
||||
SYSTEMD_AUTO_ENABLE = "disable"
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
Reference in New Issue
Block a user