[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/3] automation: add binaries/ to artifacts for Yocto arm32 job


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 17 Feb 2023 15:46:47 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H8hmDbJmugK6z8TMm0u57Ez5RlvuXnspBHOmFJYuiCM=; b=UzuGX795v/PKO5CFDT6LSi8dlIuzfk9EZBgLA7s58rqSj2BaW6kN+QcE5s5dEH7XEJyDhGGFAKJZeexCS4JocS/h0weuHDKYka1X34S3q4+hpSvweW6FQ50ii6TV7Y87z3Aa7Wi309cFiV9LKiONGj821a1NVMvTCUkNkGPiAecGclsTgnjaOvRfMmtd//DV0cVbi1DoR/bQfkmL40134qbXJleO3l3RynmWEIwom73zyvOvgDY/QD+hiW0K14lM1rtdoQ0xmMnPLUsyvn8Djtn0Tup2agsbLDEZAbyF+BGge+rR9ONv6uj/rEB/yaqSsHIQv/yMg3vwHOuiJHr3jg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gfhsoWpKvEboWqECjruTy8m85zmOXKRHc2IRsWMUujvFwPXm+csuZfYxKDhwdESzQ8Xe+FiBP+QcQjepqZvfnAvdk9nj9n62SwVVs2i8ykZQI0c2L8xfcbZNVcPG9fAvE5UD7en1puploTLMEiJLuu6SZr7qZ4ITTcQlMygFCAddjAHh7PjwaNzXHhnFRLt6hmaugnQyeTBWgn9TH5Zf3ogUkEb9Hveh5jqJCc/fB4ICGOL8wY/GijGplBcTF8gnN3k/m6WUqbGGEYlwwMDKcXKwPAiez/b342uSZjuz63JdZ+yy4679wx8IJPSvAqDmOxVDh2aac4pVfAxnCmhk8A==
  • Cc: <cardoe@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Delivery-date: Fri, 17 Feb 2023 14:47:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Stefano,

On 15/02/2023 23:09, Stefano Stabellini wrote:
> 
> 
> From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
> 
> 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 <stefano.stabellini@xxxxxxx>
> ---
> Changes in v2:
> - only copy binaries for the arm32 target
> ---
>  automation/build/yocto/build-yocto.sh | 9 +++++++++
>  automation/gitlab-ci/build.yaml       | 1 +
>  2 files changed, 10 insertions(+)
> 
> diff --git a/automation/build/yocto/build-yocto.sh 
> b/automation/build/yocto/build-yocto.sh
> index 3601cebc3c..dd7065e5b2 100755
> --- a/automation/build/yocto/build-yocto.sh
> +++ b/automation/build/yocto/build-yocto.sh
> @@ -166,6 +166,13 @@ function project_build() {
>          source "${YOCTODIR}/poky/oe-init-build-env" "${destdir}"
> 
>          bitbake "${build_image}" || exit 1
> +        if [ $target = "qemuarm" ]
> +        then
> +            mkdir -p $OUTPUT
> +            cp $BUILDDIR/tmp/deploy/images/qemuarm/zImage $OUTPUT
> +            cp $BUILDDIR/tmp/deploy/images/qemuarm/xen-qemuarm $OUTPUT
> +            cp 
> $BUILDDIR/tmp/deploy/images/qemuarm/xen-image-minimal-qemuarm.tar.bz2 $OUTPUT
> +        fi
I think it would be cleaner and more helpful especially for those using the 
yocto jobs locally to add
a new parameter to build-yocto.sh (set by default to n) to copy the build 
output to a directory (e.g. binaries)
instead of hardcoding it only for qemuarm.

>      ) || return 1
>  }
> 
> @@ -238,6 +245,8 @@ Options:
>  EOF
>  }
> 
> +OUTPUT=`pwd`/binaries
NIT: seems like all the variables in this script storing a directory path have 
a "DIR" suffix,
so it should be OUTPUTDIR. Also, why not to define it at the top of the file?

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.