All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lei, Maohui" <leimaohui@cn.fujitsu.com>
To: ChenQi <Qi.Chen@windriver.com>, "Burton, Ross" <ross.burton@intel.com>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v2] openssl: Fix a build bug on aarch64BE.
Date: Tue, 18 Jun 2019 07:58:01 +0000	[thread overview]
Message-ID: <1B56A49860EB2D45ADE3731B15C959FD01BF12F717@G08CNEXMBPEKD01.g08.fujitsu.local> (raw)
In-Reply-To: <ae10a4bc-7415-d9af-280b-9e64703ba7fa@windriver.com>

Hi

I'm sorry I misunderstood. I have submitted v3 version. Please have a review.


Best regards
Lei

> -----Original Message-----
> From: ChenQi [mailto:Qi.Chen@windriver.com]
> Sent: Monday, June 17, 2019 1:17 PM
> To: Lei, Maohui/雷 茂慧; openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH v2] openssl: Fix a build bug on aarch64BE.
> 
> On 06/06/2019 05:46 AM, Lei Maohui wrote:
> > Fix bug as following on aarch64BE:
> >
> > Error: operand 1 must be an integer register -- `rev v31.16b,v31.16b'
> >
> > https://github.com/openssl/openssl/pull/9151
> >
> > Upstream-Status: Submitted
> >
> > Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> > ---
> >   ...01-Fix-build-error-for-aarch64-big-endian.patch | 41
> ++++++++++++++++++++++
> >   .../recipes-connectivity/openssl/openssl_1.1.1c.bb |  1 +
> >   2 files changed, 42 insertions(+)
> >   create mode 100644 meta/recipes-connectivity/openssl/openssl/0001-Fix-
> build-error-for-aarch64-big-endian.patch
> >
> > diff --git a/meta/recipes-connectivity/openssl/openssl/0001-Fix-build-error-
> for-aarch64-big-endian.patch b/meta/recipes-connectivity/openssl/openssl/0001-
> Fix-build-error-for-aarch64-big-endian.patch
> > new file mode 100644
> > index 0000000..65ca02c
> > --- /dev/null
> > +++ b/meta/recipes-connectivity/openssl/openssl/0001-Fix-build-error-for-
> aarch64-big-endian.patch
> > @@ -0,0 +1,41 @@
> > +From 1f8c0f2feea5cdcae0bcd9dfc78198d9e2c4cf09 Mon Sep 17 00:00:00 2001
> > +From: Lei Maohui <leimaohui@cn.fujitsu.com>
> > +Date: Thu, 13 Jun 2019 12:17:30 +0900
> > +Subject: [PATCH] Fix build error for aarch64 big endian.
> > +
> > +Modified rev to rev64, because rev only takes integer registers.
> > +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90827
> > +Otherwise, the following error will occur.
> > +
> > +Error: operand 1 must be an integer register -- `rev v31.16b,v31.16b'
> > +
> 
> Put Upstream-Status here.
> 
> Best Regards,
> Chen Qi
> 
> > +Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> > +---
> > + crypto/sha/asm/keccak1600-armv8.pl | 4 ++--
> > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > +
> > +diff --git a/crypto/sha/asm/keccak1600-armv8.pl b/crypto/sha/asm/keccak1600-
> armv8.pl
> > +index dc72f18..6620690 100755
> > +--- a/crypto/sha/asm/keccak1600-armv8.pl
> > ++++ b/crypto/sha/asm/keccak1600-armv8.pl
> > +@@ -731,7 +731,7 @@ $code.=<<___;
> > + 	blo	.Lprocess_block_ce
> > + 	ldr	d31,[$inp],#8		// *inp++
> > + #ifdef	__AARCH64EB__
> > +-	rev	v31.16b,v31.16b
> > ++	rev64	v31.16b,v31.16b
> > + #endif
> > + 	eor	$A[$j/5][$j%5],$A[$j/5][$j%5],v31.16b
> > + 	beq	.Lprocess_block_ce
> > +@@ -740,7 +740,7 @@ ___
> > + $code.=<<___;
> > + 	ldr	d31,[$inp],#8		// *inp++
> > + #ifdef	__AARCH64EB__
> > +-	rev	v31.16b,v31.16b
> > ++	rev64	v31.16b,v31.16b
> > + #endif
> > + 	eor	$A[4][4],$A[4][4],v31.16b
> > +
> > +--
> > +2.7.4
> > +
> > diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1c.bb
> b/meta/recipes-connectivity/openssl/openssl_1.1.1c.bb
> > index 669b1a1..ec85ccd 100644
> > --- a/meta/recipes-connectivity/openssl/openssl_1.1.1c.bb
> > +++ b/meta/recipes-connectivity/openssl/openssl_1.1.1c.bb
> > @@ -16,6 +16,7 @@ SRC_URI = "http://www.openssl.org/source/openssl-
> ${PV}.tar.gz \
> >              file://0001-skip-test_symbol_presence.patch \
> >              file://0001-buildinfo-strip-sysroot-and-debug-prefix-map-from-
> co.patch \
> >              file://afalg.patch \
> > +           file://0001-Fix-build-error-for-aarch64-big-endian.patch \
> >              "
> >
> >   SRC_URI_append_class-nativesdk = " \
> 
> 
> 




      reply	other threads:[~2019-06-18  7:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-05 21:46 [PATCH v2] openssl: Fix a build bug on aarch64BE Lei Maohui
2019-06-17  4:00 ` ✗ patchtest: failure for openssl: Fix a build bug on aarch64BE. (rev4) Patchwork
2019-06-17  5:16 ` [PATCH v2] openssl: Fix a build bug on aarch64BE ChenQi
2019-06-18  7:58   ` Lei, Maohui [this message]

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=1B56A49860EB2D45ADE3731B15C959FD01BF12F717@G08CNEXMBPEKD01.g08.fujitsu.local \
    --to=leimaohui@cn.fujitsu.com \
    --cc=Qi.Chen@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.