mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-11 23:42:55 +00:00
59 lines
1.8 KiB
Plaintext
59 lines
1.8 KiB
Plaintext
modules-$(CONFIG_CRYPTSETUP) += cryptsetup
|
|
|
|
cryptsetup_depends := util-linux popt lvm2 $(musl_dep)
|
|
|
|
cryptsetup_version := 2.3.3
|
|
cryptsetup_dir := cryptsetup-$(cryptsetup_version)
|
|
cryptsetup_tar := cryptsetup-$(cryptsetup_version).tar.xz
|
|
cryptsetup_url := https://www.kernel.org/pub/linux/utils/cryptsetup/v2.3/cryptsetup-$(cryptsetup_version).tar.xz
|
|
cryptsetup_hash := 3bca4ffe39e2f94cef50f6ea65acb873a6dbce5db34fc6bcefe38b6d095e82df
|
|
|
|
# Use an empty prefix so that the executables will not include the
|
|
# build path.
|
|
cryptsetup_configure := ./configure \
|
|
$(CROSS_TOOLS) \
|
|
--host i386-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) \
|
|
-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.12.6.0 \
|
|
|
|
|
|
# json-c is needed since cryptsetup version 2.0
|
|
cryptsetup_depends += json-c
|
|
modules-y += json-c
|
|
|
|
json-c_version := 0.14
|
|
json-c_dir := json-c-$(json-c_version)
|
|
json-c_tar := json-c-$(json-c_version).tar.gz
|
|
json-c_url := https://s3.amazonaws.com/json-c_releases/releases/json-c-$(json-c_version)-nodoc.tar.gz
|
|
json-c_hash := 99914e644a25201d82ccefa20430f7515c110923360f9ef46755527c02412afa
|
|
|
|
# there is a bug in cmake-configure so that it can not be used with a "=", fxed in next
|
|
# release though (then it needs to read '--prefix="$(INSTALL)"' here instead
|
|
json-c_configure := mkdir -p build && \
|
|
cd build && \
|
|
../cmake-configure --prefix "$(INSTALL)"
|
|
|
|
json-c_target := \
|
|
$(CROSS_TOOLS) -C $(build)/$(json-c_dir)/build \
|
|
all install
|
|
|
|
json-c_libraries := build/.libs/libjson-c.so.5.0.0
|