mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +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>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
modules-$(CONFIG_CRYPTSETUP2) += cryptsetup2
|
|
|
|
cryptsetup2_depends := util-linux popt lvm2 json-c $(musl_dep)
|
|
|
|
cryptsetup2_version := 2.3.3
|
|
cryptsetup2_dir := cryptsetup-$(cryptsetup2_version)
|
|
cryptsetup2_tar := cryptsetup-$(cryptsetup2_version).tar.xz
|
|
cryptsetup2_url := https://www.kernel.org/pub/linux/utils/cryptsetup/v2.3/cryptsetup-$(cryptsetup2_version).tar.xz
|
|
cryptsetup2_hash := 3bca4ffe39e2f94cef50f6ea65acb873a6dbce5db34fc6bcefe38b6d095e82df
|
|
|
|
# Use an empty prefix so that the executables will not include the
|
|
# build path.
|
|
cryptsetup2_configure := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
--prefix "/" \
|
|
--disable-gcrypt-pbkdf2 \
|
|
--disable-rpath \
|
|
--enable-cryptsetup-reencrypt \
|
|
--with-crypto_backend=kernel \
|
|
--with-tmpfilesdir=$(INSTALL)/lib/tmpfiles.d
|
|
|
|
# but after building, replace prefix so that they will be installed
|
|
# in the correct directory.
|
|
cryptsetup2_target := \
|
|
$(MAKE_JOBS) \
|
|
&& $(MAKE) \
|
|
-C $(build)/$(cryptsetup2_dir) \
|
|
prefix="$(INSTALL)" \
|
|
install
|
|
|
|
cryptsetup2_output := \
|
|
.libs/cryptsetup \
|
|
.libs/cryptsetup-reencrypt \
|
|
.libs/veritysetup \
|
|
|
|
cryptsetup2_libraries := \
|
|
.libs/libcryptsetup.so.12 \
|
|
|