2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-06-24 04:46:31 +02:00
|
|
|
#
|
|
|
|
# lvm2
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2018-07-26 19:15:24 +02:00
|
|
|
LVM2_VERSION = 2.02.180
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_SOURCE = LVM2.$(LVM2_VERSION).tgz
|
2018-07-26 19:15:24 +02:00
|
|
|
LVM2_SITE = ftp://sources.redhat.com/pub/lvm2
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_INSTALL_STAGING = YES
|
2017-03-30 15:43:34 +02:00
|
|
|
LVM2_LICENSE = GPL-2.0, LGPL-2.1
|
2013-10-08 03:31:48 +02:00
|
|
|
LVM2_LICENSE_FILES = COPYING COPYING.LIB
|
2010-12-12 22:53:54 +01:00
|
|
|
|
|
|
|
# Make sure that binaries and libraries are installed with write
|
2017-07-04 16:47:43 +02:00
|
|
|
# permissions for the owner. We disable NLS because it's broken, and
|
|
|
|
# the package anyway doesn't provide any translation files.
|
2014-09-27 21:32:44 +02:00
|
|
|
LVM2_CONF_OPTS += \
|
2014-02-04 11:06:03 +01:00
|
|
|
--enable-write_install \
|
|
|
|
--enable-pkgconfig \
|
|
|
|
--enable-cmdlib \
|
2017-07-04 16:47:43 +02:00
|
|
|
--enable-dmeventd \
|
2018-07-26 19:15:23 +02:00
|
|
|
--disable-nls \
|
|
|
|
--disable-symvers
|
2010-12-12 22:53:54 +01:00
|
|
|
|
2018-07-26 19:15:24 +02:00
|
|
|
LVM2_DEPENDENCIES += host-pkgconf libaio
|
2017-09-13 22:17:55 +02:00
|
|
|
|
2010-12-12 22:53:54 +01:00
|
|
|
# LVM2 uses autoconf, but not automake, and the build system does not
|
2016-12-12 19:13:54 +01:00
|
|
|
# take into account the toolchain passed at configure time.
|
|
|
|
LVM2_MAKE_ENV = $(TARGET_CONFIGURE_OPTS)
|
2009-06-15 15:54:14 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2010-12-12 22:53:54 +01:00
|
|
|
LVM2_DEPENDENCIES += readline
|
2009-06-15 15:54:14 +02:00
|
|
|
else
|
|
|
|
# v2.02.44: disable readline usage, or binaries are linked against provider
|
|
|
|
# of "tgetent" (=> ncurses) even if it's not used..
|
2014-09-27 21:32:44 +02:00
|
|
|
LVM2_CONF_OPTS += --disable-readline
|
2009-06-15 15:54:14 +02:00
|
|
|
endif
|
|
|
|
|
2017-10-10 21:30:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
LVM2_CONF_OPTS += --enable-selinux
|
|
|
|
LVM2_DEPENDENCIES += libselinux
|
|
|
|
else
|
|
|
|
LVM2_CONF_OPTS += --disable-selinux
|
|
|
|
endif
|
|
|
|
|
2013-11-28 09:29:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),)
|
2014-09-27 21:32:38 +02:00
|
|
|
LVM2_MAKE_OPTS = device-mapper
|
2014-09-27 21:32:41 +02:00
|
|
|
LVM2_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install_device-mapper
|
2014-09-27 21:32:40 +02:00
|
|
|
LVM2_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install_device-mapper
|
2009-06-15 15:54:14 +02:00
|
|
|
endif
|
|
|
|
|
2013-01-07 11:43:18 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LVM2_CONF_OPTS += --enable-applib
|
2013-01-07 11:43:18 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LVM2_CONF_OPTS += --disable-applib
|
2013-01-07 11:43:18 +01:00
|
|
|
endif
|
|
|
|
|
2016-07-11 16:35:14 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
|
2015-07-01 14:35:51 +02:00
|
|
|
LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
|
|
|
|
endif
|
|
|
|
|
2018-08-16 11:29:44 +02:00
|
|
|
HOST_LVM2_DEPENDENCIES = host-pkgconf host-libaio
|
2017-10-05 17:06:20 +02:00
|
|
|
HOST_LVM2_CONF_OPTS = \
|
|
|
|
--enable-write_install \
|
|
|
|
--enable-pkgconfig \
|
|
|
|
--disable-cmdlib \
|
|
|
|
--disable-dmeventd \
|
|
|
|
--disable-applib \
|
|
|
|
--disable-fsadm \
|
2017-10-10 21:30:14 +02:00
|
|
|
--disable-readline \
|
|
|
|
--disable-selinux
|
2017-10-05 17:06:20 +02:00
|
|
|
HOST_LVM2_MAKE_OPTS = device-mapper
|
|
|
|
HOST_LVM2_INSTALL_OPTS = install_device-mapper
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2017-10-05 17:06:20 +02:00
|
|
|
$(eval $(host-autotools-package))
|