lvm2: add host variant
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 5 Oct 2017 15:06:20 +0000 (17:06 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 5 Oct 2017 20:45:30 +0000 (22:45 +0200)
This is only for the device-mapper library, so a user selectable
Config.in.host option isn't needed.

[Peter: add host-pkgconf dependency as pointed out by Arnout]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/lvm2/lvm2.mk

index f7f706976f5ab356cb4d681ecded5b8679f1e690..9880c12bf05e2d8f559567e9479dd37d836904c0 100644 (file)
@@ -51,4 +51,17 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
 LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
 endif
 
+HOST_LVM2_DEPENDENCIES = host-pkgconf
+HOST_LVM2_CONF_OPTS = \
+       --enable-write_install \
+       --enable-pkgconfig \
+       --disable-cmdlib \
+       --disable-dmeventd \
+       --disable-applib \
+       --disable-fsadm \
+       --disable-readline
+HOST_LVM2_MAKE_OPTS = device-mapper
+HOST_LVM2_INSTALL_OPTS = install_device-mapper
+
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))