2017-03-31 15:18:46 +00:00
|
|
|
modules-$(CONFIG_LVM2) += lvm2
|
2016-12-28 17:45:12 +00:00
|
|
|
|
|
|
|
lvm2_version := 2.02.168
|
2020-01-09 12:27:09 +00:00
|
|
|
lvm2_dir := lvm2.$(lvm2_version)
|
2016-12-28 17:45:12 +00:00
|
|
|
lvm2_tar := LVM2.$(lvm2_version).tgz
|
2018-02-02 20:54:01 +00:00
|
|
|
lvm2_url := https://mirrors.kernel.org/sourceware/lvm2/$(lvm2_tar)
|
2016-12-28 17:45:12 +00:00
|
|
|
lvm2_hash := 23a3d1cddd41b3ef51812ebf83e9fa491f502fe74130d4263be327a91914660d
|
|
|
|
|
2017-01-04 21:39:10 +00:00
|
|
|
# cross compiling test assumes malloc/realloc aren't glibc compat
|
|
|
|
# so we force it via the configure cache.
|
|
|
|
lvm2_configure := \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2023-03-01 16:12:46 +00:00
|
|
|
CFLAGS="-Os" \
|
2017-04-06 20:44:48 +00:00
|
|
|
PKG_CONFIG=/bin/false \
|
|
|
|
MODPROBE_CMD=/bin/false \
|
2017-01-04 21:39:10 +00:00
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_realloc_0_nonnull=yes \
|
|
|
|
./configure \
|
2021-07-18 17:34:20 +00:00
|
|
|
--host $(MUSL_ARCH)-elf-linux \
|
2017-04-06 20:01:56 +00:00
|
|
|
--prefix "/" \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-blkid_wiping \
|
|
|
|
--disable-cache_check_needs_check \
|
|
|
|
--disable-cmirrord \
|
2017-04-08 18:30:50 +00:00
|
|
|
--disable-dmeventd \
|
|
|
|
--disable-lvmetad \
|
|
|
|
--disable-lvmpolld \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-realtime \
|
|
|
|
--disable-selinux \
|
|
|
|
--disable-thin_check_needs_check \
|
|
|
|
--disable-udev-systemd-background-jobs \
|
2017-04-03 21:13:59 +00:00
|
|
|
--disable-use-lvmetad \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-use-lvmlockd \
|
2017-04-03 21:13:59 +00:00
|
|
|
--disable-use-lvmpolld \
|
2024-01-29 03:55:11 +00:00
|
|
|
--enable-devmapper \
|
2017-01-04 21:39:10 +00:00
|
|
|
--with-cluster=none \
|
2024-01-10 22:08:23 +00:00
|
|
|
--with-thin-check= \
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-01-04 21:39:10 +00:00
|
|
|
# not sure why LIB_SUFFIX is not defined in the cross build
|
|
|
|
lvm2_target := \
|
2017-03-21 18:29:07 +00:00
|
|
|
$(MAKE_JOBS) \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2017-04-06 20:01:56 +00:00
|
|
|
DESTDIR="$(INSTALL)" \
|
2017-04-08 17:23:34 +00:00
|
|
|
all \
|
2017-04-09 06:49:42 +00:00
|
|
|
&& \
|
|
|
|
$(MAKE) \
|
|
|
|
-C "$(build)/$(lvm2_dir)" \
|
|
|
|
$(MAKE_JOBS) \
|
|
|
|
$(CROSS_TOOLS) \
|
|
|
|
DESTDIR="$(INSTALL)" \
|
2017-04-06 20:01:56 +00:00
|
|
|
install_device-mapper \
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-03-29 19:15:03 +00:00
|
|
|
lvm2_libraries := libdm/libdevmapper.so.1.02
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-04-03 21:13:59 +00:00
|
|
|
lvm2_output := \
|
|
|
|
tools/dmsetup \
|
|
|
|
tools/lvm \
|
2016-12-29 23:23:08 +00:00
|
|
|
|
2017-04-03 21:13:59 +00:00
|
|
|
lvm2_depends := util-linux $(musl_dep)
|