Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C946FC433EF for ; Thu, 14 Jul 2022 10:10:25 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.367211.598279 (Exim 4.92) (envelope-from ) id 1oBvnE-0004x8-Tj; Thu, 14 Jul 2022 10:10:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 367211.598279; Thu, 14 Jul 2022 10:10:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oBvnE-0004x0-Qw; Thu, 14 Jul 2022 10:10:00 +0000 Received: by outflank-mailman (input) for mailman id 367211; Thu, 14 Jul 2022 10:09:59 +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 1oBvnD-0004wp-R7 for xen-devel@lists.xenproject.org; Thu, 14 Jul 2022 10:09:59 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id 1cf12de5-035d-11ed-924f-1f966e50362f; Thu, 14 Jul 2022 12:09:57 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2679F139F; Thu, 14 Jul 2022 03:09:57 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 251F73F70D; Thu, 14 Jul 2022 03:09:56 -0700 (PDT) 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: 1cf12de5-035d-11ed-924f-1f966e50362f From: Bertrand Marquis To: xen-devel@lists.xenproject.org Cc: Doug Goldstein , Stefano Stabellini Subject: [RFC PATCH 0/2] Yocto Gitlab CI support Date: Thu, 14 Jul 2022 11:09:43 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series is a first attempt to check if we could use Yocto in gitlab ci to build and run xen on qemu for arm, arm64 and x86. The first patch is creating a container with all elements required to build Yocto, a checkout of the yocto layers required and an helper script to build and run xen on qemu with yocto. The second patch is creating containers with a first build of yocto done so that susbsequent build with those containers would only rebuild what was changed and take the rest from the cache. This is is mainly for discussion and sharing as there are still some issues/problem to solve: - building the qemu* containers can take several hours depending on the network bandwith and computing power of the machine where those are created - produced containers containing the cache have a size between 8 and 12GB depending on the architecture. We might need to store the build cache somewhere else to reduce the size. If we choose to have one single image, the needed size is around 20GB and we need up to 40GB during the build, which is why I splitted them. - during the build and run, we use a bit more then 20GB of disk which is over the allowed size in gitlab Once all problems passed, this can be used to build and run dom0 on qemu with a modified Xen on the 3 archs in less than 10 minutes. Bertrand Marquis (2): automation: Add elements for Yocto test and run automation: Add yocto containers with cache automation/build/Makefile | 2 + automation/build/yocto/build-yocto.sh | 322 ++++++++++++++++++ .../build/yocto/kirkstone-qemuarm.dockerfile | 28 ++ .../yocto/kirkstone-qemuarm64.dockerfile | 28 ++ .../yocto/kirkstone-qemux86-64.dockerfile | 28 ++ automation/build/yocto/kirkstone.dockerfile | 98 ++++++ 6 files changed, 506 insertions(+) create mode 100755 automation/build/yocto/build-yocto.sh create mode 100644 automation/build/yocto/kirkstone-qemuarm.dockerfile create mode 100644 automation/build/yocto/kirkstone-qemuarm64.dockerfile create mode 100644 automation/build/yocto/kirkstone-qemux86-64.dockerfile create mode 100644 automation/build/yocto/kirkstone.dockerfile -- 2.25.1