[Peter: make mutual exclusive with dmsetup-only, drop special install / make]
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
help
Install dmsetup only and skip the LVM2 suite.
+config BR2_PACKAGE_LVM2_APP_LIBRARY
+ bool "install application library"
+ depends on BR2_PACKAGE_LVM2
+ depends on !BR2_PACKAGE_LVM2_DMSETUP_ONLY
+ help
+ Install application library (liblvm2app).
+
comment "lvm2 requires a toolchain with LARGEFILE support"
depends on !BR2_LARGEFILE
LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install_device-mapper
endif
+ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
+LVM2_CONF_OPT += --enable-applib
+else
+LVM2_CONF_OPT += --disable-applib
+endif
+
define LVM2_UNINSTALL_STAGING_CMDS
rm -f $(addprefix $(STAGING_DIR)/usr/sbin/,$(LVM2_BINS))
rm -f $(addprefix $(STAGING_DIR)/usr/lib/,libdevmapper.so*)