From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D0AF8A04B1; Tue, 25 Aug 2020 16:16:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 05CF9DE3; Tue, 25 Aug 2020 16:16:20 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 26AB5A3 for ; Tue, 25 Aug 2020 16:16:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598364978; 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=2MTzdjXCT0bcsu/g8dxHGFrrUjvdlNeT6XsdWxYtB8g=; b=Q9YZSmtAEzQ3ubwv1+nEjqO2Lyz21HqM+rZvpkWzcCSDCcDXnHoOv+oeYlTRmaAs14SkDz dPaHIqmIS4f+CUGEAWW4FW4S1E7bBRgNUruK8YqflxXZB8TRmf42jRBSwxvk+EteTal4YS MbIoeAeB8yjtLkjXdm0RFTL7ssLzUSs= 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-545-PQ2rHP3PNOKS094tkNYecQ-1; Tue, 25 Aug 2020 10:16:15 -0400 X-MC-Unique: PQ2rHP3PNOKS094tkNYecQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F1CEB81F022; Tue, 25 Aug 2020 14:16:13 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (ovpn-114-76.rdu2.redhat.com [10.10.114.76]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2AD5380920; Tue, 25 Aug 2020 14:16:13 +0000 (UTC) From: Aaron Conole To: Juraj =?utf-8?Q?Linke=C5=A1?= Cc: bruce.richardson@intel.com, maicolgabriel@hotmail.com, dev@dpdk.org References: <1597401092-13713-1-git-send-email-juraj.linkes@pantheon.tech> <1598360684-8975-1-git-send-email-juraj.linkes@pantheon.tech> <1598360684-8975-5-git-send-email-juraj.linkes@pantheon.tech> Date: Tue, 25 Aug 2020 10:16:12 -0400 In-Reply-To: <1598360684-8975-5-git-send-email-juraj.linkes@pantheon.tech> ("Juraj \=\?utf-8\?Q\?Linke\=C5\=A1\=22's\?\= message of "Tue, 25 Aug 2020 15:04:43 +0200") Message-ID: 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.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v8 4/5] ci: add aarch64 -> aarch32 cross compiling jobs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Juraj Linke=C5=A1 writes: > Add two jobs (static and shared libs), both building on aarch64 and > producing 32-bit arm binaries executable on armv8-a, but not armv7. > Do not run tests in these jobs. > > Signed-off-by: Juraj Linke=C5=A1 > --- > .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..c042b065c 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 [ "$AARCH32" =3D "1" ]; then > + # convert the arch specifier > + OPTS=3D"$OPTS --cross-file config/arm/arm32_armv8a_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 file build/app/dpdk-testpmd | sed 's/-/_/g' | grep -q "$(uname -m)"; = then I'm not sure about this. This will degrade the 32-bit x86 build, since it will no longer execute the test-null.sh script. Maybe we should re-use that flag for this series. BUILD_32BIT ?? > devtools/test-null.sh > fi > =20 > diff --git a/.travis.yml b/.travis.yml > index d6eeab371..850faaac1 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -18,6 +18,10 @@ _aarch64_packages: &aarch64_packages > - *required_packages > - [gcc-aarch64-linux-gnu, libc6-dev-arm64-cross, pkg-config-aarch64-li= nux-gnu] > =20 > +_arm_32b_packages: &arm_32b_packages > + - *required_packages > + - [gcc-arm-linux-gnueabihf, libc6-dev-armhf-cross, pkg-config-arm-linu= x-gnueabihf] > + > _build_32b_packages: &build_32b_packages > - *required_packages > - [gcc-multilib] > @@ -98,6 +102,21 @@ jobs: > packages: > - *required_packages > - *doc_packages > + # aarch64 cross-compiling aarch32 jobs > + - env: DEF_LIB=3D"shared" AARCH32=3D1 > + arch: arm64 > + compiler: gcc > + addons: > + apt: > + packages: > + - *arm_32b_packages > + - env: DEF_LIB=3D"static" AARCH32=3D1 > + arch: arm64 > + compiler: gcc > + addons: > + apt: > + packages: > + - *arm_32b_packages > # aarch64 clang jobs > - env: DEF_LIB=3D"static" > arch: arm64