2020-07-26 01:06:07 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libblockdev
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-02-06 20:03:59 +01:00
|
|
|
LIBBLOCKDEV_VERSION = 2.25
|
2020-07-26 01:06:07 +02:00
|
|
|
LIBBLOCKDEV_SITE = https://github.com/storaged-project/libblockdev/releases/download/$(LIBBLOCKDEV_VERSION)-1
|
|
|
|
LIBBLOCKDEV_LICENSE = LGPL-2.1
|
|
|
|
LIBBLOCKDEV_LICENSE_FILES = LICENSE
|
|
|
|
LIBBLOCKDEV_INSTALL_STAGING = YES
|
|
|
|
LIBBLOCKDEV_DEPENDENCIES = host-pkgconf libglib2 kmod udev
|
|
|
|
# 0001-Provide-replacement-function-for-strerror_l.patch
|
|
|
|
LIBBLOCKDEV_AUTORECONF = YES
|
|
|
|
|
|
|
|
LIBBLOCKDEV_CONF_OPTS = \
|
|
|
|
--disable-introspection \
|
|
|
|
--with-loop \
|
|
|
|
--without-bcache \
|
|
|
|
--without-btrfs \
|
|
|
|
--without-dm \
|
|
|
|
--without-dmraid \
|
|
|
|
--without-escrow \
|
|
|
|
--without-kbd \
|
|
|
|
--without-lvm_dbus \
|
|
|
|
--without-mpath \
|
|
|
|
--without-nvdimm \
|
|
|
|
--without-python2 \
|
|
|
|
--without-python3 \
|
|
|
|
--without-s390 \
|
|
|
|
--without-tools \
|
|
|
|
--without-vdo
|
|
|
|
|
2020-07-26 01:06:09 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_CRYPTO),y)
|
|
|
|
LIBBLOCKDEV_DEPENDENCIES += cryptsetup
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --with-crypto
|
|
|
|
else
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --without-crypto
|
|
|
|
endif
|
|
|
|
|
2020-07-26 01:06:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_FS),y)
|
2020-10-15 20:47:14 +02:00
|
|
|
LIBBLOCKDEV_DEPENDENCIES += parted util-linux
|
2020-07-26 01:06:10 +02:00
|
|
|
LIBBLOCKDEV_CONF_OPTS += --with-fs
|
|
|
|
else
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --without-fs
|
|
|
|
endif
|
|
|
|
|
2020-07-26 01:06:11 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LOOP),y)
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --with-loop
|
|
|
|
else
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --without-loop
|
|
|
|
endif
|
|
|
|
|
2020-07-26 01:06:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LVM2),y)
|
|
|
|
LIBBLOCKDEV_DEPENDENCIES += lvm2 parted
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --with-lvm
|
|
|
|
else
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --without-lvm
|
|
|
|
endif
|
|
|
|
|
2020-07-26 01:06:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_MDRAID),y)
|
|
|
|
LIBBLOCKDEV_DEPENDENCIES += libbytesize
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --with-mdraid
|
|
|
|
else
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --without-mdraid
|
|
|
|
endif
|
|
|
|
|
2020-07-26 01:06:14 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_PART),y)
|
|
|
|
LIBBLOCKDEV_DEPENDENCIES += parted
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --with-part
|
|
|
|
else
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --without-part
|
|
|
|
endif
|
|
|
|
|
2020-07-26 01:06:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_SWAP),y)
|
|
|
|
LIBBLOCKDEV_DEPENDENCIES += util-linux
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --with-swap
|
|
|
|
else
|
|
|
|
LIBBLOCKDEV_CONF_OPTS += --without-swap
|
|
|
|
endif
|
|
|
|
|
2020-07-26 01:06:07 +02:00
|
|
|
$(eval $(autotools-package))
|