mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
236f9b117c
More pending work needed to fix fragility of buildsystem and fix nix build issues as well like: https://app.circleci.com/pipelines/github/mmlb/osresearch-heads/11/workflows/32cc883c-5074-4f28-94b8-a83a2ec44414/jobs/252 https://app.circleci.com/pipelines/github/mmlb/osresearch-heads/11/workflows/32cc883c-5074-4f28-94b8-a83a2ec44414/jobs/221 https://app.circleci.com/pipelines/github/tlaurion/heads/1781/workflows/ee402ead-6739-4549-88ae-105b695fb3cd https://app.circleci.com/pipelines/github/tlaurion/heads/1783/workflows/2b35826c-aff4-4f48-8809-4e66259f9aa4/jobs/25877/parallel-runs/0/steps/0-103 Signed-off-by: Thierry Laurion <insurgo@riseup.net> Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev> Signed-off-by: Thierry Laurion <insurgo@riseup.net>
57 lines
1.7 KiB
Makefile
57 lines
1.7 KiB
Makefile
modules-$(CONFIG_GPG2) += gpg2
|
|
|
|
gpg2_version := 2.4.2
|
|
gpg2_dir := gnupg-$(gpg2_version)
|
|
gpg2_tar := gnupg-$(gpg2_version).tar.bz2
|
|
gpg2_url := https://www.gnupg.org/ftp/gcrypt/gnupg/$(gpg2_tar)
|
|
gpg2_hash := 97eb47df8ae5a3ff744f868005a090da5ab45cb48ee9836dbf5ee739a4e5cf49
|
|
gpg2_depends := libgpg-error libgcrypt libksba libassuan npth libusb $(musl_dep)
|
|
|
|
# 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.
|
|
gpg2_configure := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
CPPFLAGS="-I$(INSTALL)/include/libusb-1.0" \
|
|
--host $(MUSL_ARCH)-linux-musl \
|
|
--prefix "/" \
|
|
--libexecdir "/bin" \
|
|
--disable-all-tests \
|
|
--disable-bzip2 \
|
|
--disable-dirmngr \
|
|
--disable-doc \
|
|
--disable-exec \
|
|
--disable-gnutls \
|
|
--disable-gpgsm \
|
|
--disable-ldap \
|
|
--disable-libdns \
|
|
--disable-nls \
|
|
--disable-ntbtls \
|
|
--disable-photo-viewers \
|
|
--disable-rpath \
|
|
--disable-sqlite \
|
|
--disable-tofu \
|
|
--disable-wks-tools \
|
|
--disable-zip \
|
|
--enable-ccid-driver \
|
|
--enable-scdaemon \
|
|
--with-gpg-error-prefix="$(INSTALL)" \
|
|
--with-ksba-prefix="$(INSTALL)" \
|
|
--with-libassuan-prefix="$(INSTALL)" \
|
|
--with-libgcrypt-prefix="$(INSTALL)" \
|
|
--with-npth-prefix="$(INSTALL)" \
|
|
|
|
# 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
|
|
gpg2_target := $(MAKE_JOBS) \
|
|
&& $(MAKE) -C $(build)/$(gpg2_dir) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install
|
|
|
|
gpg2_output := g10/gpg agent/gpg-agent scd/scdaemon
|