From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 22BEEA034F;
	Tue,  5 May 2020 20:56:42 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 719061D6B7;
	Tue,  5 May 2020 20:56:41 +0200 (CEST)
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
 [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 19DF91D68F
 for <dev@dpdk.org>; Tue,  5 May 2020 20:56:39 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1588704999;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=Y71QNhJAp2zHjLe3j5gxn+SWI7P0UK+579b8F+odBSs=;
 b=fCmHPKx4OOOzBxDnJkNyjIUoipOXBvt4IiLLRDCovWwtJIz5BEZD8Ol82AfOVy9Y3nvoie
 Ja5U5mqxqT3WV6Lou1LhOqiAyvYIZx5uHTEqPKUg2iytz9Lt6VeauuLTd6tqz9GUe4ySTK
 nQpQBKUxQnbjMhsCCtSjz96fpB6AnfA=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-186-fTvE34f0OrGpT7QO3djGUQ-1; Tue, 05 May 2020 14:56:35 -0400
X-MC-Unique: fTvE34f0OrGpT7QO3djGUQ-1
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
 [10.5.11.16])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 38A47460;
 Tue,  5 May 2020 18:56:34 +0000 (UTC)
Received: from dhcp-25.97.bos.redhat.com (ovpn-116-3.rdu2.redhat.com
 [10.10.116.3])
 by smtp.corp.redhat.com (Postfix) with ESMTPS id 52C6C5C1BD;
 Tue,  5 May 2020 18:56:30 +0000 (UTC)
From: Aaron Conole <aconole@redhat.com>
To: Juraj =?utf-8?Q?Linke=C5=A1?= <juraj.linkes@pantheon.tech>
Cc: bruce.richardson@intel.com, maicolgabriel@hotmail.com, Ruifeng.Wang@arm.com,
 dev@dpdk.org
References: <1586941391-11094-1-git-send-email-juraj.linkes@pantheon.tech>
 <1588155872-13032-1-git-send-email-juraj.linkes@pantheon.tech>
 <1588155872-13032-5-git-send-email-juraj.linkes@pantheon.tech>
Date: Tue, 05 May 2020 14:56:28 -0400
In-Reply-To: <1588155872-13032-5-git-send-email-juraj.linkes@pantheon.tech>
 ("Juraj \=\?utf-8\?Q\?Linke\=C5\=A1\=22's\?\= message of "Wed,
 29 Apr 2020 12:24:32 +0200")
Message-ID: <f7th7wu9pnn.fsf@dhcp-25.97.bos.redhat.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: [dpdk-dev] [PATCH v4 4/4] ci: add aarch64 -> arm32 cross
	compiling jobs
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Juraj Linke=C5=A1 <juraj.linkes@pantheon.tech> writes:

> Add two jobs (static and shared libs), both building on aarch64 and
> producing 32 bit arm binaries. Do not run tests in these jobs.
>
> Signed-off-by: Juraj Linke=C5=A1 <juraj.linkes@pantheon.tech>
> ---
>  .ci/linux-build.sh |  7 ++++++-
>  .travis.yml        | 19 +++++++++++++++++++
>  2 files changed, 25 insertions(+), 1 deletion(-)
>
> diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
> index d079801d7..3cc3d8bac 100755
> --- a/.ci/linux-build.sh
> +++ b/.ci/linux-build.sh
> @@ -33,6 +33,11 @@ if [ "$AARCH64" =3D "1" ]; then
>      OPTS=3D"$OPTS --cross-file config/arm/arm64_armv8_linux_gcc"
>  fi
> =20
> +if [ "$ARM" =3D "1" ]; then
> +    # convert the arch specifier
> +    OPTS=3D"$OPTS --cross-file config/arm/arm_armv7a_linux_gcc"
> +fi
> +
>  if [ "$BUILD_DOCS" =3D "1" ]; then
>      OPTS=3D"$OPTS -Denable_docs=3Dtrue"
>  fi
> @@ -53,7 +58,7 @@ OPTS=3D"$OPTS --buildtype=3Ddebugoptimized"
>  meson build --werror $OPTS
>  ninja -C build
> =20
> -if [ "$AARCH64" !=3D "1" ]; then
> +if [ "$AARCH64" !=3D "1" ] && [ "$ARM" !=3D "1" ]; then

Probably we should rewrite this check so that it is affirmative on
x86_64 - since there are outstanding proposals for PPC as well (and I
forsee the check to run test-null.sh getting bigger).  WDYT?

>      devtools/test-null.sh
>  fi
> =20
> diff --git a/.travis.yml b/.travis.yml
> index 2d2292ff6..63939d2c5 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -21,6 +21,10 @@ _aarch64_packages: &aarch64_packages
>    - *required_packages
>    - [gcc-aarch64-linux-gnu, libc6-dev-arm64-cross, pkg-config-aarch64-li=
nux-gnu]
> =20
> +_arm_packages: &arm_packages
> +  - *required_packages
> +  - [gcc-arm-linux-gnueabihf, libc6-dev-armhf-cross, pkg-config-arm-linu=
x-gnueabihf]
> +
>  _libabigail_build_packages: &libabigail_build_packages
>    - [autoconf, automake, libtool, pkg-config, libxml2-dev, libdw-dev]
> =20
> @@ -124,6 +128,21 @@ jobs:
>          packages:
>            - *required_packages
>            - *libabigail_build_packages
> +  # aarch64 cross-compiling arm jobs
> +  - env: DEF_LIB=3D"shared" ARM=3D1
> +    arch: arm64
> +    compiler: gcc
> +    addons:
> +      apt:
> +        packages:
> +          - *arm_packages
> +  - env: DEF_LIB=3D"static" ARM=3D1
> +    arch: arm64
> +    compiler: gcc
> +    addons:
> +      apt:
> +        packages:
> +          - *arm_packages
>    # aarch64 clang jobs
>    - env: DEF_LIB=3D"static"
>      arch: arm64