From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D9058A0C4E; Mon, 8 Nov 2021 18:53:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8339A40DF7; Mon, 8 Nov 2021 18:53:21 +0100 (CET) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BCB840151 for ; Mon, 8 Nov 2021 18:53:20 +0100 (CET) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1A8HCY7d017214 for ; Mon, 8 Nov 2021 17:53:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=9d2Hj//GusOjNgm1epvRnYKYb5WAwdaHShiAwKugkO4=; b=cT7uarpgXKgh9h0N6CI9gbrrDGO1cRZYijMq/HiuZw4AUJmhgmRc9wYc1MKpCwy/pUpm mybXEri51ABonpFxL0l0T1+f2oRQ4GmYV9kZVzSWM+thHU5n2aNtYwKK/bQJfR4bgEvp O8Bhj0QbAHwPwWiYe6fASFByB+BlVeDf0xmgVnE2d7aqL2vAu7PQT3dIaZ1gOpJcgCEZ thzz++76ghudY1hIf8upSITCakgM4Sk1LHhiZbOOWCy/WFVL4kQgvz68Qfv/FPyb2FI6 KH0OG7edu+X/e423toHs4swttVIbaeGdI1Myeu9IZsv2+ucYRfgCPfd7sDOkAWB9epzz qw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3c783fs0c5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 08 Nov 2021 17:53:19 +0000 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1A8HrIvk032252 for ; Mon, 8 Nov 2021 17:53:19 GMT Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 3c783fs0bn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Nov 2021 17:53:18 +0000 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1A8Ho4DA002856; Mon, 8 Nov 2021 17:53:17 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma01dal.us.ibm.com with ESMTP id 3c5hbb1hv1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Nov 2021 17:53:17 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1A8HrDHg54395338 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Nov 2021 17:53:13 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48B52AC060; Mon, 8 Nov 2021 17:53:13 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36E42AC05B; Mon, 8 Nov 2021 17:53:13 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.224.51]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 8 Nov 2021 17:53:13 +0000 (GMT) From: David Christensen To: dev@dpdk.org, aconole@redhat.com, maicolgabriel@hotmail.com Cc: David Christensen , David Marchand Date: Mon, 8 Nov 2021 09:53:11 -0800 Message-Id: <20211108175311.1167541-1-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211105204020.1098032-1-drc@linux.vnet.ibm.com> References: <20211105204020.1098032-1-drc@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: gwew8j6FhsSXj0umG0jwLrhSgTj4nLIl X-Proofpoint-ORIG-GUID: VayJksKM7lGh2SFezw9ub5m3WHpCOmcB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-08_05,2021-11-08_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=970 priorityscore=1501 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111080105 Subject: [dpdk-dev] [PATCH v2] ci: enable ppc64le cross compilation in GHA X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Enable Github Actions to cross-compile code for POWER systems. Signed-off-by: David Christensen Reviewed-by: David Marchand --- v2 - Changed cross compile filename to be consistent with ARM .ci/linux-build.sh | 6 +++++- .github/workflows/build.yml | 15 ++++++++++++++- config/ppc/ppc64le-power8-linux-gcc-ubuntu1804 | 11 +++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 config/ppc/ppc64le-power8-linux-gcc-ubuntu1804 diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index e1f5255327..ef0bd099be 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -64,6 +64,10 @@ if [ "$AARCH64" = "true" ]; then fi fi +if [ "$PPC64LE" = "true" ]; then + OPTS="$OPTS --cross-file config/ppc/ppc64le-power8-linux-gcc-ubuntu1804" +fi + if [ "$BUILD_DOCS" = "true" ]; then OPTS="$OPTS -Denable_docs=true" fi @@ -86,7 +90,7 @@ OPTS="$OPTS -Dcheck_includes=true" meson build --werror $OPTS ninja -C build -if [ "$AARCH64" != "true" ]; then +if [ "$AARCH64" != "true" ] && [ "$PPC64LE" != "true" ]; then failed= configure_coredump devtools/test-null.sh || failed="true" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cc96121b6..4151cafee7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,7 @@ jobs: CC: ccache ${{ matrix.config.compiler }} DEF_LIB: ${{ matrix.config.library }} LIBABIGAIL_VERSION: libabigail-1.8 + PPC64LE: ${{ matrix.config.cross == 'ppc64le' }} REF_GIT_TAG: none RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }} @@ -56,6 +57,14 @@ jobs: compiler: gcc library: shared cross: aarch64 + - os: ubuntu-18.04 + compiler: gcc + library: static + cross: ppc64le + - os: ubuntu-18.04 + compiler: gcc + library: shared + cross: ppc64le steps: - name: Checkout sources @@ -107,8 +116,12 @@ jobs: if: env.AARCH64 == 'true' run: sudo apt install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross pkg-config-aarch64-linux-gnu + - name: Install ppc64le cross compiling packages + if: env.PPC64LE == 'true' + run: sudo apt install -y gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross + pkg-config-powerpc-linux-gnu - name: Install test tools packages - if: env.AARCH64 != 'true' || env.RUN_TESTS == 'true' + if: env.AARCH64 != 'true' || env.PPC64LE != 'true' || env.RUN_TESTS == 'true' run: sudo apt install -y gdb - name: Install doc generation packages if: env.BUILD_DOCS == 'true' diff --git a/config/ppc/ppc64le-power8-linux-gcc-ubuntu1804 b/config/ppc/ppc64le-power8-linux-gcc-ubuntu1804 new file mode 100644 index 0000000000..803c612cbc --- /dev/null +++ b/config/ppc/ppc64le-power8-linux-gcc-ubuntu1804 @@ -0,0 +1,11 @@ +[binaries] +c = 'powerpc64le-linux-gnu-gcc' +cpp = 'powerpc64le-linux-gnu-cpp' +ar = 'powerpc64le-linux-gnu-ar' +strip = 'powerpc64le-linux-gnu-strip' + +[host_machine] +system = 'linux' +cpu_family = 'ppc64' +cpu = 'power8' +endian = 'little' -- 2.27.0