mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2] libgcrypt: update 1.7.3 -> 1.7.5
Date: Tue, 10 Jan 2017 16:09:21 +0100	[thread overview]
Message-ID: <20170110150921.sjlgnhych3v4g5u7@pengutronix.de> (raw)
In-Reply-To: <20170109180749.9940-1-clemens.gruber@pqgruber.com>

On Mon, Jan 09, 2017 at 07:07:49PM +0100, Clemens Gruber wrote:
> Also add configure options explicitly and enable ASM for all
> architectures except m68k/ColdFire.
> 
> Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
> ---
> 
> Changes from v1:
> - Rely on runtime detection for optimizations besides NEON
> - Disabling ASM is only necessary on m68k/ColdFire
> 
>  rules/libgcrypt.make | 38 +++++++++++++++++++++++++-------------
>  1 file changed, 25 insertions(+), 13 deletions(-)
> 
> diff --git a/rules/libgcrypt.make b/rules/libgcrypt.make
> index 4ffe6bcee..0edbca9cd 100644
> --- a/rules/libgcrypt.make
> +++ b/rules/libgcrypt.make
> @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LIBGCRYPT) += libgcrypt
>  #
>  # Paths and names
>  #
> -LIBGCRYPT_VERSION	:= 1.7.3
> -LIBGCRYPT_MD5		:= c869e542cc13a1c28d8055487bf7f5c4
> +LIBGCRYPT_VERSION	:= 1.7.5
> +LIBGCRYPT_MD5		:= 74c8b4b2118946dcbfec5ff1cbf97177
>  LIBGCRYPT		:= libgcrypt-$(LIBGCRYPT_VERSION)
>  LIBGCRYPT_SUFFIX	:= tar.bz2
>  LIBGCRYPT_URL		:= http://artfiles.org/gnupg.org/libgcrypt/$(LIBGCRYPT).$(LIBGCRYPT_SUFFIX) ftp://ftp.gnupg.org/gcrypt/libgcrypt/$(LIBGCRYPT).$(LIBGCRYPT_SUFFIX)
> @@ -38,19 +38,31 @@ LIBGCRYPT_LICENSE_FILES	:= \
>  #
>  LIBGCRYPT_AUTOCONF := \
>  	$(CROSS_AUTOCONF_USR) \
> -	--enable-build-timestamp="$(PTXDIST_VERSION_YEAR)-$(PTXDIST_VERSION_MONTH)-01T00:00+0000" \
> -	--enable-optimization \
> +	--disable-static \
> +	--enable-shared \
> +	--enable-random=linux \
> +	--enable-dev-random \
>  	--disable-random-daemon \
> -	--disable-asm \
> +	--$(call ptx/disen,PTXCONF_ARCH_M68K)-asm \
> +	--disable-m-guard \
>  	--disable-large-data-tests \
> -	--disable-doc
> -#
> -# ASM needs MPI, which we don't have
> -#
> -# using --enable-asm will result in lost of;
> -# ../src/.libs/libgcrypt.so: undefined reference to `_gcry_mpih_add_n'
> -# ../src/.libs/libgcrypt.so: undefined reference to `_gcry_mpih_submul_1'
> -#
> +	--disable-hmac-binary-check \
> +	--enable-padlock-support \
> +	--enable-aesni-support \
> +	--enable-pclmul-support \
> +	--enable-sse41-support \
> +	--enable-drng-support \
> +	--enable-avx-support \
> +	--enable-avx2-support \
> +	--$(call ptx/endis,PTXCONF_ARCH_ARM_NEON)-neon-support \
> +	--enable-arm-crypto-support \
> +	--enable-O-flag-munging \
> +	--disable-amd64-as-feature-detection \
> +	--enable-optimization \
> +	--enable-noexecstack \
> +	--disable-doc \
> +	--enable-build-timestamp="$(PTXDIST_VERSION_YEAR)-$(PTXDIST_VERSION_MONTH)-01T00:00+0000" \
> +	--without-capabilities

Hmm, I looked at what the capabilities stuff is for. It is used for 'secure
memory'. I'm not an expert here, but I guess it will set up some memory
that cannot be swapped out etc. It only needs libcap and that's a rather
small library, so I think this should be enabled. What do you think?

Looks good otherwise. No need to send a new patch. I'll make the change if
necessary.

Michael

>  
>  # ----------------------------------------------------------------------------
>  # Target-Install
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2017-01-10 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-09 18:07 Clemens Gruber
2017-01-10 15:09 ` Michael Olbrich [this message]
2017-01-10 15:38   ` Clemens Gruber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170110150921.sjlgnhych3v4g5u7@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox