2017-03-31 15:18:46 +00:00
|
|
|
modules-$(CONFIG_CRYPTSETUP) += cryptsetup
|
2016-08-19 15:20:41 +00:00
|
|
|
|
2017-04-03 21:13:59 +00:00
|
|
|
cryptsetup_depends := util-linux popt lvm2 $(musl_dep)
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2016-11-29 19:24:01 +00:00
|
|
|
cryptsetup_version := 1.7.3
|
2016-08-19 15:20:41 +00:00
|
|
|
cryptsetup_dir := cryptsetup-$(cryptsetup_version)
|
|
|
|
cryptsetup_tar := cryptsetup-$(cryptsetup_version).tar.xz
|
2016-11-29 19:24:01 +00:00
|
|
|
cryptsetup_url := https://www.kernel.org/pub/linux/utils/cryptsetup/v1.7/cryptsetup-$(cryptsetup_version).tar.xz
|
|
|
|
cryptsetup_hash := af2b04e8475cf40b8d9ffd97a1acfa73aa787c890430afd89804fb544d6adc02
|
2016-08-19 15:20:41 +00:00
|
|
|
|
2017-01-28 18:14:56 +00:00
|
|
|
# Use an empty prefix so that the executables will not include the
|
|
|
|
# build path.
|
2016-11-29 19:24:01 +00:00
|
|
|
cryptsetup_configure := ./configure \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2017-01-04 21:39:10 +00:00
|
|
|
--host i386-elf-linux \
|
2017-04-07 13:51:15 +00:00
|
|
|
--prefix "/" \
|
2016-12-01 19:03:55 +00:00
|
|
|
--disable-gcrypt-pbkdf2 \
|
2018-10-08 20:26:20 +00:00
|
|
|
--enable-cryptsetup-reencrypt \
|
2016-12-01 19:03:55 +00:00
|
|
|
--with-crypto_backend=kernel \
|
|
|
|
|
2017-01-28 18:14:56 +00:00
|
|
|
# but after building, replace prefix so that they will be installed
|
|
|
|
# in the correct directory.
|
2017-01-04 21:39:10 +00:00
|
|
|
cryptsetup_target := \
|
2017-03-21 18:29:07 +00:00
|
|
|
$(MAKE_JOBS) \
|
2017-01-28 18:14:56 +00:00
|
|
|
&& $(MAKE) \
|
|
|
|
-C $(build)/$(cryptsetup_dir) \
|
|
|
|
prefix="$(INSTALL)" \
|
|
|
|
install
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2016-12-01 19:03:55 +00:00
|
|
|
cryptsetup_output := \
|
|
|
|
src/.libs/cryptsetup \
|
2018-10-08 20:26:20 +00:00
|
|
|
src/.libs/cryptsetup-reencrypt \
|
2016-12-01 19:03:55 +00:00
|
|
|
src/.libs/veritysetup \
|
|
|
|
|
2017-03-29 19:15:03 +00:00
|
|
|
cryptsetup_libraries := \
|
|
|
|
lib/.libs/libcryptsetup.so.4 \
|
2016-12-28 17:45:12 +00:00
|
|
|
|