From patchwork Tue May 31 14:13:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Kardach X-Patchwork-Id: 112154 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE019A0548; Tue, 31 May 2022 16:14:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87CAB42B8B; Tue, 31 May 2022 16:13:24 +0200 (CEST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mails.dpdk.org (Postfix) with ESMTP id 3A94B42B74 for ; Tue, 31 May 2022 16:13:20 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id a15so2433485lfb.9 for ; Tue, 31 May 2022 07:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UQsVG5akkRgJ4jEe8mm3djkWeWs9iOOveiQ+LM1fju0=; b=79KJxCjwSoyEYo5d2aBS1o3tuiGPFB/Zq7KGfb4Fw+VKIcId+bMuwrA10H1HKbG0QR aMnxnBWwCEXG/Vn8HCnjKGVHQ89nnwwIO4nRR9HQSDysWyXYYv2iGnH8KzaYZW9lEFEC avyhyRyetgsuNJ688DqNYp+GNIFELsVTwdLFGx0rGb/SeY7Utt/vtFpBps/qZtcgyr0P 1uCvgtBY4Lkt4lpbcOXSfKMrMS4NlMbT5rPVf7hyJztfm4bBt6SIaiyqQMMWNFVhoQut o17Xo6M/4IWJ4twZlAf+NeSzaoG05SBW/N7CdqC44xtnzAc9qPoXOhaQ+tEVWxpIddUr hYiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UQsVG5akkRgJ4jEe8mm3djkWeWs9iOOveiQ+LM1fju0=; b=kYLk9OzLclxF91FLktUfVwdxh8i9S016wgs8cm/ugqz+RhW1GeeeSx1Khx2HoCffli i/5vN+t6iJZde4oOlzmuCb0LucarBBVbVrx87xadnOHW12OXORsMTDXe7kJBgDS2+ARi fVfEpkpkVhVsE9RKmEdviFARz3kjvzHN9n6hhc8Nh7D3REsBzv1ZdZtwk4QhNdJeku9X QeZEGTL8bMGzBXVDxc5L4GvnER98mNoZ/YNgQSV4LwBNuGtGYSyaENJCe4IqmY63Xscw 3B0bblp/q+8GayhHYmVx1xmDclzLyktpf/RmeBiApGAX0xeFJIKjbCd8uf0ClqztI/Ka Fwxg== X-Gm-Message-State: AOAM5338BQ9aBGYkVEYAcDhVLVs7FjpPFu8VzLOTGp3sq9jEdsmp/KYZ u3jP5p+gAXhfzsBb/7mI3SVWdQ== X-Google-Smtp-Source: ABdhPJxdbldcAYDTgJrrGwtoVA164EgpbkQXqZNvBifFLwEcIZpb42N6c37TpQhSg4iM0PNMu450/Q== X-Received: by 2002:a05:6512:10d2:b0:478:8ea5:f6f0 with SMTP id k18-20020a05651210d200b004788ea5f6f0mr26493706lfg.7.1654006399949; Tue, 31 May 2022 07:13:19 -0700 (PDT) Received: from toster.semihalf.net (89-73-146-138.dynamic.chello.pl. [89.73.146.138]) by smtp.gmail.com with ESMTPSA id k20-20020a2e6f14000000b002554f044e1asm1258311ljc.116.2022.05.31.07.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 07:13:19 -0700 (PDT) From: Stanislaw Kardach To: Aaron Conole Cc: Stanislaw Kardach , dev@dpdk.org, Frank Zhao , Sam Grove , mw@semihalf.com, upstream@semihalf.com, David Marchand Subject: [PATCH v4 8/8] ci: add RISCV64 cross compilation job Date: Tue, 31 May 2022 16:13:07 +0200 Message-Id: <20220531141307.253385-9-kda@semihalf.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220531141307.253385-1-kda@semihalf.com> References: <20220531141307.253385-1-kda@semihalf.com> MIME-Version: 1.0 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 Checks cross-compilation using Ubuntu 20.04 x86. Signed-off-by: David Marchand Signed-off-by: Stanislaw Kardach --- .ci/linux-build.sh | 4 ++++ .github/workflows/build.yml | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index 1de8962f0e..06104eca22 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -74,6 +74,10 @@ if [ "$PPC64LE" = "true" ]; then cross_file=config/ppc/ppc64le-power8-linux-gcc-ubuntu fi +if [ "$RISCV64" = "true" ]; then + cross_file=config/riscv/riscv64_linux_gcc +fi + if [ -n "$cross_file" ]; then OPTS="$OPTS --cross-file $cross_file" fi diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad8ad1a187..7c8528cb04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,7 @@ jobs: MINI: ${{ matrix.config.mini != '' }} PPC64LE: ${{ matrix.config.cross == 'ppc64le' }} REF_GIT_TAG: v22.03 + RISCV64: ${{ matrix.config.cross == 'riscv64' }} RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }} strategy: @@ -74,6 +75,10 @@ jobs: compiler: gcc library: shared cross: ppc64le + - os: ubuntu-20.04 + compiler: gcc + library: shared + cross: riscv64 steps: - name: Checkout sources @@ -132,8 +137,12 @@ jobs: if: env.PPC64LE == 'true' run: sudo apt install -y gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross pkg-config-powerpc-linux-gnu + - name: Install riscv64 cross compiling packages + if: env.RISCV64 == 'true' + run: sudo apt install -y gcc-riscv64-linux-gnu libc6-dev-riscv64-cross + pkg-config-riscv64-linux-gnu - name: Install test tools packages - if: env.AARCH64 != 'true' || env.PPC64LE != 'true' || env.RUN_TESTS == 'true' + if: env.AARCH64 != 'true' || env.PPC64LE != 'true' || env.RISCV64 != 'true' || env.RUN_TESTS == 'true' run: sudo apt install -y gdb - name: Install doc generation packages if: env.BUILD_DOCS == 'true'