mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-21 05:53:14 +00:00
1411dffb6a
Use --prefix="" to ensure that no destination paths are in libraries. Use -fdebug-prefix-map to rewrite build path so that it does not appear in the executables. Use -gno-record-gcc-switches to ensure that the -fdebug-prefix-map does not appear in the executables.
34 lines
934 B
Plaintext
34 lines
934 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 := \
|
|
-j 8 \
|
|
&& $(MAKE) \
|
|
-C $(build)/$(cryptsetup_dir) \
|
|
prefix="$(INSTALL)" \
|
|
install
|
|
|
|
cryptsetup_output := \
|
|
src/.libs/cryptsetup \
|
|
src/.libs/veritysetup \
|
|
|
|
|