2017-03-31 15:18:46 +00:00
|
|
|
modules-$(CONFIG_GPG) += gpg
|
2016-12-28 17:45:12 +00:00
|
|
|
|
|
|
|
# we install gpgv 1.4, which is an older version that has fewer
|
|
|
|
# dependencies. This may need to be revisted later.
|
|
|
|
gpg_version := 1.4.21
|
|
|
|
gpg_dir := gnupg-$(gpg_version)
|
|
|
|
gpg_tar := gnupg-$(gpg_version).tar.bz2
|
|
|
|
gpg_url := https://www.gnupg.org/ftp/gcrypt/gnupg/$(gpg_tar)
|
2016-12-29 11:39:32 +00:00
|
|
|
gpg_hash := 6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-01-28 18:14:56 +00:00
|
|
|
# For reproducibility reasons we have to override the exec_prefix
|
|
|
|
# and datarootdir on the configure line so that the Makefiles will
|
|
|
|
# be generated with the correct paths, but then re-write them when
|
|
|
|
# we use the install target so that they will be copied to the correct
|
|
|
|
# location.
|
2018-02-06 16:13:20 +00:00
|
|
|
#
|
|
|
|
# Force a different host/build setting so that it detects a cross compile.
|
|
|
|
# Otherwise it wil try to run tests.
|
|
|
|
#
|
2023-03-01 16:12:46 +00:00
|
|
|
gpg_configure := \
|
|
|
|
CFLAGS="-Os" \
|
2017-04-08 17:23:34 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2023-03-01 16:12:46 +00:00
|
|
|
./configure \
|
2021-07-18 17:34:20 +00:00
|
|
|
--build $(MUSL_ARCH)-elf-linux \
|
|
|
|
--host $(MUSL_ARCH)-linux-musl \
|
2017-04-05 21:59:49 +00:00
|
|
|
--prefix "/" \
|
2017-01-04 21:39:10 +00:00
|
|
|
--disable-asm \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-bzip2 \
|
|
|
|
--disable-dns-cert \
|
|
|
|
--disable-dns-srv \
|
2016-12-28 17:45:12 +00:00
|
|
|
--disable-exec \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-finger \
|
|
|
|
--disable-hkp \
|
2016-12-28 17:45:12 +00:00
|
|
|
--disable-keyserver-helpers \
|
|
|
|
--disable-ldap \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-photo-viewers \
|
2016-12-28 17:45:12 +00:00
|
|
|
--disable-regex \
|
2024-01-29 03:55:11 +00:00
|
|
|
--enable-card-support \
|
|
|
|
--with-libusb="$(INSTALL)" \
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-01-28 18:14:56 +00:00
|
|
|
# Run one build to generate the executables with the pre-defined
|
|
|
|
# exec_prefix and datarootdir, then a second make to install the binaries
|
|
|
|
# into our actual target location
|
2017-04-05 21:59:49 +00:00
|
|
|
gpg_target := $(MAKE_JOBS) \
|
2017-01-28 18:14:56 +00:00
|
|
|
&& $(MAKE) -C $(build)/$(gpg_dir) \
|
2017-04-07 14:57:19 +00:00
|
|
|
DESTDIR="$(INSTALL)" \
|
2017-01-28 18:14:56 +00:00
|
|
|
install
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-04-05 21:59:49 +00:00
|
|
|
gpg_output := g10/gpg
|
2016-12-28 17:45:12 +00:00
|
|
|
|
2017-04-05 21:59:49 +00:00
|
|
|
gpg_depends := libusb-compat $(musl_dep)
|