From nobody Thu Nov 28 08:36:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1676678911; cv=none; d=zohomail.com; s=zohoarc; b=MdtYxVTPoOfH/pFlaXknCPRKUlDMaURFazYnOwGlN+TXL1UQUuh2rjPyFKuPmPm6BSJiq2sKOKnVHZep2gHFHPw5T0Z+S81HJSLW2BjNlQH0CCkPmIsf0aoqhtRPHtkEOIjQMDK2yo5B+KEk0B7ECmbmVi08CRZNbj/+6ujTwBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676678911; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=z8nK65C8DHsU19IErIQSj8PYu6z0n2C/VJJYKbWdVac=; b=IkPZ7qV7dMWOBXx7v9krJ2Uj6BHDWqI4/40fq4ZL/XZkYnXYk0gjKKuVYiDIK70fGgh3ZfKjxqCBc4nOZSVizA2mJeeaK4r0DnwwGdCRHXSP/RB+LhZOCHwwK++Dk34jAi4zmqEKlf+MisNTe2uHsPAvFyP6slpb4aT8oOcF/zM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1676678911677399.12811153438315; Fri, 17 Feb 2023 16:08:31 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.497384.768369 (Exim 4.92) (envelope-from ) id 1pTAlh-0004i6-C3; Sat, 18 Feb 2023 00:07:57 +0000 Received: by outflank-mailman (output) from mailman id 497384.768369; Sat, 18 Feb 2023 00:07:57 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pTAlh-0004hu-9A; Sat, 18 Feb 2023 00:07:57 +0000 Received: by outflank-mailman (input) for mailman id 497384; Sat, 18 Feb 2023 00:07:55 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pTAlf-00049k-Qe for xen-devel@lists.xenproject.org; Sat, 18 Feb 2023 00:07:55 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [2604:1380:4641:c500::1]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 498b7b5f-af20-11ed-93b5-47a8fe42b414; Sat, 18 Feb 2023 01:07:53 +0100 (CET) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5395D6209D; Sat, 18 Feb 2023 00:07:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1560DC4339C; Sat, 18 Feb 2023 00:07:50 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 498b7b5f-af20-11ed-93b5-47a8fe42b414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676678871; bh=ReIRkrUsD0aUe+sTs/xO/eCMbv89yibMdXJjNiWEuAk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RQAS7xGmEushY27lNqqHLEenfNcDuYaKE+/0N40gzg7jRPHhPRb9MtotVPHL3bu/D px9xCTX686rQk/SkR0+UWcTL6a12fxpTvOiejKVQGS1DydYxEbUdf/mubzDnlK3dKH FZ39joQ6KWFt3Zns8SrXTmRO3kQ+fVvaSc4aN9Sl38culfDEVbPmEFHfS17ZNRASgt CTHlF6hYob4UIEmF8u7x2OZjE1x7Cc056A034k1D5NcwxeQoGDY34p4/8eBi0AHv7K lH2TvmDcHEdnII1FyPmu/AJ2a1DOKVxIyAV1c9eIsV03057wsILS30RrtxnawIkpMw YASyorI4o+/GA== From: Stefano Stabellini To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, cardoe@cardoe.com, michal.orzel@amd.com, Stefano Stabellini Subject: [PATCH v3 2/3] automation: add binaries/ to artifacts for Yocto arm32 job Date: Fri, 17 Feb 2023 16:07:46 -0800 Message-Id: <20230218000747.2965719-2-sstabellini@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1676678913410100005 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini Copy the build output of Yocto builds to binaries/ for the arm32 target, and export binaries/ among the jobs artifacts so that they can be reused by other jobs. Signed-off-by: Stefano Stabellini Reviewed-by: Michal Orzel --- Changes in v2: - add --copy-output so that whether the binaries get copied or not is user selectable - rename OUTPUT to OUTPUTDIR and move it up in the file --- automation/build/yocto/build-yocto.sh | 16 ++++++++++++++++ automation/gitlab-ci/build.yaml | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/automation/build/yocto/build-yocto.sh b/automation/build/yocto= /build-yocto.sh index 3601cebc3c..93ce81ce82 100755 --- a/automation/build/yocto/build-yocto.sh +++ b/automation/build/yocto/build-yocto.sh @@ -18,6 +18,7 @@ CACHEDIR=3D"$HOME/yocto-cache" LOGDIR=3D"$HOME/logs" XENDIR=3D"$HOME/xen" BUILDDIR=3D"$HOME/build" +OUTPUTDIR=3D`pwd`/binaries =20 # what yocto bsp we support TARGET_SUPPORTED=3D"qemuarm qemuarm64 qemux86-64" @@ -31,6 +32,7 @@ do_build=3D"y" do_run=3D"y" do_localsrc=3D"n" do_dump=3D"n" +do_copy=3D"n" build_result=3D0 =20 # layers to include in the project @@ -166,6 +168,16 @@ function project_build() { source "${YOCTODIR}/poky/oe-init-build-env" "${destdir}" =20 bitbake "${build_image}" || exit 1 + if [ $do_copy =3D "y" ] + then + if [ $target =3D "qemuarm" ] + then + mkdir -p $OUTPUTDIR + cp $BUILDDIR/tmp/deploy/images/qemuarm/zImage $OUTPUTDIR + cp $BUILDDIR/tmp/deploy/images/qemuarm/xen-qemuarm $OUTPUT= DIR + cp $BUILDDIR/tmp/deploy/images/qemuarm/xen-image-minimal-q= emuarm.tar.bz2 $OUTPUTDIR + fi + fi ) || return 1 } =20 @@ -235,6 +247,7 @@ Options: Default: ${CACHEDIR} --layer-dir=3DDIR directory containing the checkout of yocto layers Default: ${YOCTODIR} + --copy-output Copy output binaries to binaries/ EOF } =20 @@ -290,6 +303,9 @@ do --layer-dir=3D*) YOCTODIR=3D"${OPTION#*=3D}" ;; + --copy-output) + do_copy=3D"y" + ;; --*) echo "Invalid option ${OPTION}" help diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.y= aml index b6ae1c663b..d731642785 100644 --- a/automation/gitlab-ci/build.yaml +++ b/automation/gitlab-ci/build.yaml @@ -208,13 +208,14 @@ - /^coverity-tested\/.*/ - /^stable-.*/ script: - - ./automation/build/yocto/build-yocto.sh -v --log-dir=3D./logs --xen-= dir=3D`pwd` ${YOCTO_BOARD} + - ./automation/build/yocto/build-yocto.sh -v --log-dir=3D./logs --xen-= dir=3D`pwd` ${YOCTO_BOARD} ${YOCTO_OUTPUT} variables: YOCTO_VERSION: kirkstone CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD}-${YOCTO_HOST} artifacts: paths: - 'logs/*' + - binaries/ when: always needs: [] =20 @@ -744,6 +745,7 @@ yocto-qemuarm: extends: .yocto-test-arm64 variables: YOCTO_BOARD: qemuarm + YOCTO_OUTPUT: --copy-output =20 yocto-qemux86-64: extends: .yocto-test-arm64 --=20 2.25.1