mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
907e906f01
Adresses @easrentai suggestion to pass modules build optimization for space here: #590 (comment) - Uniformized module's $(CROSS_TOOLS) being passed as environment variable, prior of ./configure call Doesn't work for: - busybox (HOSTCXXFLAGS="-Os" attempted prior of ./configure call) - zlib (CFLAGS="-Os" attempted prior of ./configure call) - npth (CFLAGS="-Os" attempted prior of ./configure call)
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
modules-$(CONFIG_CRYPTSETUP) += cryptsetup
|
|
|
|
cryptsetup_depends := util-linux 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 := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
--prefix "/" \
|
|
--disable-gcrypt-pbkdf2 \
|
|
--enable-cryptsetup-reencrypt \
|
|
--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/cryptsetup-reencrypt \
|
|
src/.libs/veritysetup \
|
|
|
|
cryptsetup_libraries := \
|
|
lib/.libs/libcryptsetup.so.4 \
|
|
|