mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 12:46:26 +00:00
a4ba76fd90
Just some minor clean ups like fixing whitespace and sorting things. I added (bash)/removed (libusb) white space in order to look like the other modules. I sorted the --enable/--disable/--with blocks so that common stuff looked similar which should aid in comparing modules. I also removed a couple of duplicate config options (--disable-fallback-curses & --disable-regex). Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev> Signed-off-by: Thierry Laurion <insurgo@riseup.net>
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
modules-$(CONFIG_GPG) += gpg
|
|
|
|
# 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)
|
|
gpg_hash := 6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
|
|
|
|
# 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.
|
|
#
|
|
# Force a different host/build setting so that it detects a cross compile.
|
|
# Otherwise it wil try to run tests.
|
|
#
|
|
gpg_configure := \
|
|
CFLAGS="-Os" \
|
|
$(CROSS_TOOLS) \
|
|
./configure \
|
|
--build $(MUSL_ARCH)-elf-linux \
|
|
--host $(MUSL_ARCH)-linux-musl \
|
|
--prefix "/" \
|
|
--disable-asm \
|
|
--disable-bzip2 \
|
|
--disable-dns-cert \
|
|
--disable-dns-srv \
|
|
--disable-exec \
|
|
--disable-finger \
|
|
--disable-hkp \
|
|
--disable-keyserver-helpers \
|
|
--disable-ldap \
|
|
--disable-photo-viewers \
|
|
--disable-regex \
|
|
--enable-card-support \
|
|
--with-libusb="$(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
|
|
gpg_target := $(MAKE_JOBS) \
|
|
&& $(MAKE) -C $(build)/$(gpg_dir) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install
|
|
|
|
gpg_output := g10/gpg
|
|
|
|
gpg_depends := libusb-compat $(musl_dep)
|