mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 15:16: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>
47 lines
1.6 KiB
Makefile
47 lines
1.6 KiB
Makefile
# pinentry is required for gpg2 to be able to read user passwords
|
|
CONFIG_PINENTRY ?= $(CONFIG_GPG2)
|
|
modules-$(CONFIG_PINENTRY) += pinentry
|
|
|
|
pinentry_version := 1.1.0
|
|
pinentry_dir := pinentry-$(pinentry_version)
|
|
pinentry_tar := pinentry-$(pinentry_version).tar.bz2
|
|
pinentry_url := https://www.gnupg.org/ftp/gcrypt/pinentry/$(pinentry_tar)
|
|
pinentry_hash := 68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570
|
|
|
|
# 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.
|
|
pinentry_configure := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
--host $(MUSL_ARCH)-linux-musl \
|
|
--prefix "/" \
|
|
--disable-fallback-curses \
|
|
--disable-libsecret \
|
|
--disable-pinentry-curses \
|
|
--disable-pinentry-emacs \
|
|
--disable-pinentry-fltk \
|
|
--disable-pinentry-gnome3 \
|
|
--disable-pinentry-gtk2 \
|
|
--disable-pinentry-qt \
|
|
--disable-pinentry-qt5 \
|
|
--enable-pinentry-tty \
|
|
--with-libassuan-prefix="$(INSTALL)" \
|
|
--with-libgpg-error-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
|
|
pinentry_target := $(MAKE_JOBS) \
|
|
&& $(MAKE) -C $(build)/$(pinentry_dir) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install \
|
|
&& cp $(build)/$(pinentry_dir)/tty/pinentry-tty $(build)/$(pinentry_dir)/tty/pinentry
|
|
|
|
pinentry_output := tty/pinentry-tty
|
|
|
|
pinentry_depends := libgpg-error libassuan $(musl_dep)
|