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
|
|
|
|
lvm2_dir := LVM2.$(lvm2_version)
|
|
|
|
lvm2_tar := LVM2.$(lvm2_version).tgz
|
|
|
|
lvm2_url := http://mirrors.kernel.org/sourceware/lvm2/$(lvm2_tar)
|
|
|
|
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 := \
|
2016-12-29 23:23:08 +00:00
|
|
|
CC="$(heads_cc)" \
|
2017-01-04 21:39:10 +00:00
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_realloc_0_nonnull=yes \
|
|
|
|
./configure \
|
|
|
|
--host i386-elf-linux \
|
2016-12-28 17:45:12 +00:00
|
|
|
--prefix $(INSTALL) \
|
|
|
|
--disable-selinux \
|
|
|
|
--disable-udev-systemd-background-jobs \
|
|
|
|
--disable-realtime \
|
2017-01-04 21:39:10 +00:00
|
|
|
--with-cluster=none \
|
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-01-04 21:39:10 +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
|
|
|
|
|
|
|
lvm2_output := tools/dmsetup
|
2016-12-29 23:23:08 +00:00
|
|
|
|
|
|
|
lvm2_depends := $(musl_dep)
|