heads/modules/cryptsetup
Trammell Hudson ab0476ad2f
Remove populate-lib, rework libraries and kernel module installation.
The populate-lib program was buggy on some systems and could accidentally
introduce unwanted libraries into the initrd.  The Makefile now uses the
modules' $(module_libraries) variable to select which libraries should be
installed into the initrd.

Kernel modules are now stripped and installed using a similar system.
2017-03-29 15:15:03 -04:00

36 lines
1000 B
Plaintext

modules += cryptsetup
cryptsetup_depends := libuuid popt lvm2 $(musl_dep)
cryptsetup_version := 1.7.3
cryptsetup_dir := cryptsetup-$(cryptsetup_version)
cryptsetup_tar := cryptsetup-$(cryptsetup_version).tar.xz
cryptsetup_url := https://www.kernel.org/pub/linux/utils/cryptsetup/v1.7/cryptsetup-$(cryptsetup_version).tar.xz
cryptsetup_hash := af2b04e8475cf40b8d9ffd97a1acfa73aa787c890430afd89804fb544d6adc02
# Use an empty prefix so that the executables will not include the
# build path.
cryptsetup_configure := ./configure \
CC="$(heads_cc)" \
--host i386-elf-linux \
--prefix "" \
--disable-gcrypt-pbkdf2 \
--with-crypto_backend=kernel \
# but after building, replace prefix so that they will be installed
# in the correct directory.
cryptsetup_target := \
$(MAKE_JOBS) \
&& $(MAKE) \
-C $(build)/$(cryptsetup_dir) \
prefix="$(INSTALL)" \
install
cryptsetup_output := \
src/.libs/cryptsetup \
src/.libs/veritysetup \
cryptsetup_libraries := \
lib/.libs/libcryptsetup.so.4 \