lvm2: add option for application library
authorMarek Belisko <marek.belisko@open-nandra.com>
Mon, 7 Jan 2013 10:43:18 +0000 (10:43 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 3 Feb 2013 13:23:26 +0000 (14:23 +0100)
[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>
package/lvm2/Config.in
package/lvm2/lvm2.mk

index 30af14e699e92d72d0107d20f781c14384d931b2..374de946001e3709e44b3ee114b2811680d4db5f 100644 (file)
@@ -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
index f54caa44d486ab3ed356628b137b23b12e42eea2..49f135d56bd9f4cabd577c6b5131d754d9871540 100644 (file)
@@ -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*)