diff options
-rw-r--r-- | package/lvm2/Config.in | 7 | ||||
-rw-r--r-- | package/lvm2/lvm2.mk | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in index 30af14e69..374de9460 100644 --- a/package/lvm2/Config.in +++ b/package/lvm2/Config.in @@ -21,5 +21,12 @@ config BR2_PACKAGE_LVM2_DMSETUP_ONLY 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 diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk index f54caa44d..49f135d56 100644 --- a/package/lvm2/lvm2.mk +++ b/package/lvm2/lvm2.mk @@ -41,6 +41,12 @@ LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install_device-mapper 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*) |