mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-22 22:32:23 +00:00
a4ba76fd90
Just some minor clean ups like fixing whitespace and sorting things. I added (bash)/removed (libusb) white space in order to look like the other modules. I sorted the --enable/--disable/--with blocks so that common stuff looked similar which should aid in comparing modules. I also removed a couple of duplicate config options (--disable-fallback-curses & --disable-regex). Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev> Signed-off-by: Thierry Laurion <insurgo@riseup.net>
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
modules-$(CONFIG_LVM2) += lvm2
|
|
|
|
lvm2_version := 2.02.168
|
|
lvm2_dir := lvm2.$(lvm2_version)
|
|
lvm2_tar := LVM2.$(lvm2_version).tgz
|
|
lvm2_url := https://mirrors.kernel.org/sourceware/lvm2/$(lvm2_tar)
|
|
lvm2_hash := 23a3d1cddd41b3ef51812ebf83e9fa491f502fe74130d4263be327a91914660d
|
|
|
|
# cross compiling test assumes malloc/realloc aren't glibc compat
|
|
# so we force it via the configure cache.
|
|
lvm2_configure := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
PKG_CONFIG=/bin/false \
|
|
MODPROBE_CMD=/bin/false \
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
ac_cv_func_realloc_0_nonnull=yes \
|
|
./configure \
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
--prefix "/" \
|
|
--disable-blkid_wiping \
|
|
--disable-cache_check_needs_check \
|
|
--disable-cmirrord \
|
|
--disable-dmeventd \
|
|
--disable-lvmetad \
|
|
--disable-lvmpolld \
|
|
--disable-realtime \
|
|
--disable-selinux \
|
|
--disable-thin_check_needs_check \
|
|
--disable-udev-systemd-background-jobs \
|
|
--disable-use-lvmetad \
|
|
--disable-use-lvmlockd \
|
|
--disable-use-lvmpolld \
|
|
--enable-devmapper \
|
|
--with-cluster=none \
|
|
--with-thin-check= \
|
|
|
|
# not sure why LIB_SUFFIX is not defined in the cross build
|
|
lvm2_target := \
|
|
$(MAKE_JOBS) \
|
|
$(CROSS_TOOLS) \
|
|
DESTDIR="$(INSTALL)" \
|
|
all \
|
|
&& \
|
|
$(MAKE) \
|
|
-C "$(build)/$(lvm2_dir)" \
|
|
$(MAKE_JOBS) \
|
|
$(CROSS_TOOLS) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install_device-mapper \
|
|
|
|
lvm2_libraries := libdm/libdevmapper.so.1.02
|
|
|
|
lvm2_output := \
|
|
tools/dmsetup \
|
|
tools/lvm \
|
|
|
|
lvm2_depends := util-linux $(musl_dep)
|