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 10DA9C433FE for ; Thu, 17 Nov 2022 09:40:22 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.444822.699910 (Exim 4.92) (envelope-from ) id 1ovbNN-0001a8-VU; Thu, 17 Nov 2022 09:40:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 444822.699910; Thu, 17 Nov 2022 09:40:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ovbNN-0001Zv-QE; Thu, 17 Nov 2022 09:40:05 +0000 Received: by outflank-mailman (input) for mailman id 444822; Thu, 17 Nov 2022 09:40:04 +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 1ovbNM-0001D0-2E for xen-devel@lists.xenproject.org; Thu, 17 Nov 2022 09:40:04 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id cf6a3cb0-665b-11ed-8fd2-01056ac49cbb; Thu, 17 Nov 2022 10:40:03 +0100 (CET) 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 99971150C; Thu, 17 Nov 2022 01:40:08 -0800 (PST) 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 982EB3F73B; Thu, 17 Nov 2022 01:40:01 -0800 (PST) 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: cf6a3cb0-665b-11ed-8fd2-01056ac49cbb From: Bertrand Marquis To: xen-devel@lists.xenproject.org Cc: michal.orzel@amd.com, Doug Goldstein , Stefano Stabellini Subject: [PATCH v4 0/3] Yocto Gitlab CI Date: Thu, 17 Nov 2022 09:39:48 +0000 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 introducing a container template from which container files can be generated for all combinations we want to support (qemu arm, arm64 and x86 targets and hosts x86_64 and arm64). It is also introducing a generic build script (build-yocto.sh) that is used to create, build and run a Yocto project. The second patch is adding a way to easily clean locally created containers. The third patch is introducing some gitlab CI templates and jobs so that we can test a Xen source tree in gitlab-CI using Yocto. This has been tested on a x86 host machine and on an arm host machine (with mk_dsdt.c fix). Changes in v4: - rework the container generation to support multiple hosts - rework the container generation to use a single template for all docker files (make process is generating the docker files). Changes in v3: - limit number of jobs in yocto - do not copy build script inside container - add patch from Michal to create gitlab jobs Changes in v2: - remove gitignore patch which was merged - add a --dump-log support in build-yocto.sh script and use it during container creation to see the error logs. Bertrand Marquis (2): automation: Create Yocto docker images automation: Add a clean rule for containers Michal Orzel (1): automation: Add CI test jobs for Yocto automation/build/Makefile | 26 +- automation/build/yocto/build-yocto.sh | 349 +++++++++++++++++++++ automation/build/yocto/yocto.dockerfile.in | 114 +++++++ automation/build/yocto/yocto.inc | 41 +++ automation/gitlab-ci/test.yaml | 43 +++ 5 files changed, 571 insertions(+), 2 deletions(-) create mode 100755 automation/build/yocto/build-yocto.sh create mode 100644 automation/build/yocto/yocto.dockerfile.in create mode 100644 automation/build/yocto/yocto.inc -- 2.25.1