From nobody Fri Nov 14 19:43:58 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761221667; cv=none; d=zohomail.com; s=zohoarc; b=JhLzr5GEPEXpk5ztJB0dMoUK6qYrA94i48uloLXfaY6gNk4AczggV8HoSP1sUIFMwXi6NnGW+EhYwsi24+B+mdRkHooInjmnLFcmjNHxMX2Hay5+riDkMxSrXKXmU7QC8Yt/eod98RyZb4xkvLPEPpmfaYcln4SOuMAEAYWNgVU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761221667; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XBaCUU+RDMe8Fm+rMDPlvgrTnuTfYc8fUoPcpfBGUms=; b=g/aiP0rNSgxUKlB519hz6meA/yipG6S6f9BnzdOzwvfmreEeXZ7cE60duvNzWZ5yY4+X71VrBYGcFDSJvUdg/HRglKZnTBosXMnTrzBt/r9umf+qz/aAZdS/HlISziLK3Clb2tvZdVn7rIZDLMawZ43Tz9O9yDYNXmNbG8y7SpE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761221667690650.6146852415986; Thu, 23 Oct 2025 05:14:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vBuAe-0001th-Iq; Thu, 23 Oct 2025 08:11:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vBu8q-0008Mc-G1 for qemu-devel@nongnu.org; Thu, 23 Oct 2025 08:10:12 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vBu8m-0005FW-LV for qemu-devel@nongnu.org; Thu, 23 Oct 2025 08:10:04 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-b6d5e04e0d3so35572966b.2 for ; Thu, 23 Oct 2025 05:10:00 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b6d514172besm199025966b.46.2025.10.23.05.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Oct 2025 05:09:54 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 19A3960F0D; Thu, 23 Oct 2025 13:09:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761221398; x=1761826198; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XBaCUU+RDMe8Fm+rMDPlvgrTnuTfYc8fUoPcpfBGUms=; b=UtqJa0PLmtEhnfQ99vG9YQtbUXM2SfLpyeALj9q+0oHi5fRmPMxgDXErDiE3SwgQtv TeWKC4JCD7AsSuiWLhrbbXoPCfcIeyr6XMUgKJuZxOBE2RruxQJDDNZCqwVGHKiQBDOu Q8kh1dMTDSkikLRaZXWBy2C51O5yAozLzXKfTBxOumkPZh19TMvUWslc5P+I/VlKqxV8 bC8xXYoE6yKDhhTr6nbUfHpJWg9iMBCm28jkHftu0BKd28UMOfVJhzliRsKJ4oLvKfgG t1Sqnt+Q9NXc1gV3TAlkJPT4Tdzmdve5ilFLkhLYi+cQnIXMe9WGVmubwOZVdrVF8QIv 9zQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761221398; x=1761826198; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XBaCUU+RDMe8Fm+rMDPlvgrTnuTfYc8fUoPcpfBGUms=; b=Iisz3WKOBeRMpIUsY6l03OUDafnZbU7nbRJbFIIVaIDjpJPc8RC4EN7fr96O25htoP JJs/oBZZiXnTYM+kxDtZlcbGJg5MDibX87Zmk+z3RSjvCT2/O/FGwERQ2yD0Xp4CgPi3 YoxTQETMp4CWofp8Bcy6SIvaaS/yXaIKgpTwycuWtW3yaJLKvnimm0+VohVsPH1YCMR7 vVbT4gOoTa3VWG9VnFfCxDEEG+W2xBURn66v9wwWSXr/vNiHmodyAeOpJPSrmg/fYrNE Dge1g9pvGrDjl71vlKv2E/2jxV3W7/8Dma20icNuE7pjeZ+RHC6eO8HHKYB3HdEHRz92 6ZVQ== X-Gm-Message-State: AOJu0YxzBDBrLsSXdbcyDZloMHeENKaQ7wi+h9ILc1w5MRrQbU0uKv8p RIeXsLE80pJ4ABNYhooaIVmjjiunpg8GDOfk8lTrXRrxTkVZd+COI894XxwwYjgD3y4= X-Gm-Gg: ASbGncshgTc8sdEjAjTimI8oFTh0YVolhOrNvXFrfC4lxkA63C8hlPDLJ7m67mAFuQn HDxDQapSq2yyWFDDmFMf0mzeERkEM2GGbQ/DigsMxfJnPT2bMVk5bfgtFyour8Kq7LOBsmBy1JM hv5Cr4NzfeWXnQv/o4+fNbQ6HB0TNoxjJFSS1Ln2dmpcr+q+OzRfxuLJRUxLxvnhjTLR32KRbw6 /WPQYn1T36aqyex+mFURiWMZgL4hElKpik4KHvFXrSR/xBs5nLb9Hd0VSvopl8AqG5uUbXC4gZL mCAwpigF8eb3JrjQ+Ytw6DHREC0fbXhj96Y2nXXtkrivcBczmKQFtjnzYjT/wRonySBzDTYS/3A YxsW9tbKZeO0u+kSGMbr0bIgJ5AkgHrJZh27TLnfkq1dGpWa86gg5J0EEzynpYwpFWJjSulHxvs mujxLaDgKB5A4= X-Google-Smtp-Source: AGHT+IGju5177LAkS68mvAkBSeCwg5nW62OKrjzAIPURr+m5J+/u2+zvZQ8AH+6oX+MgL6wrbHY2VA== X-Received: by 2002:a17:907:a07:b0:b49:3ee4:d4a6 with SMTP id a640c23a62f3a-b6471f3bde9mr397420666b.18.1761221398575; Thu, 23 Oct 2025 05:09:58 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , BALATON Zoltan , Thomas Huth , qemu-arm@nongnu.org, Gustavo Romero , Peter Maydell , qemu-s390x@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 3/7] scripts/ci: move build-environment.yaml up a level Date: Thu, 23 Oct 2025 13:09:49 +0100 Message-ID: <20251023120953.2905297-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251023120953.2905297-1-alex.bennee@linaro.org> References: <20251023120953.2905297-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761221672573158500 We can share the setup of the build environment with multiple operating systems as we just need to check the YAML for each env is present in the directory structure. Signed-off-by: Alex Benn=C3=A9e --- .../ci/setup/{ubuntu =3D> }/build-environment.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) rename scripts/ci/setup/{ubuntu =3D> }/build-environment.yml (81%) diff --git a/scripts/ci/setup/ubuntu/build-environment.yml b/scripts/ci/set= up/build-environment.yml similarity index 81% rename from scripts/ci/setup/ubuntu/build-environment.yml rename to scripts/ci/setup/build-environment.yml index 1c517c74f74..66bde188755 100644 --- a/scripts/ci/setup/ubuntu/build-environment.yml +++ b/scripts/ci/setup/build-environment.yml @@ -27,18 +27,24 @@ - ansible_facts['distribution'] =3D=3D 'Ubuntu' =20 # the package lists are updated by "make lcitool-refresh" - - name: Include package lists based on OS and architecture - include_vars: - file: "ubuntu-2404-{{ ansible_facts['architecture'] }}.yaml" + - name: Define package list file path + set_fact: + package_file: "ubuntu/ubuntu-2404-{{ ansible_facts['architecture']= }}.yaml" when: - ansible_facts['distribution'] =3D=3D 'Ubuntu' - ansible_facts['distribution_version'] =3D=3D '24.04' =20 + - name: Include package lists based on OS and architecture + include_vars: + file: "{{ package_file }}" + when: + - package_file is exists + - name: Install packages for QEMU on Ubuntu 24.04 package: name: "{{ packages }}" when: - - ansible_facts['distribution'] =3D=3D 'Ubuntu' - - ansible_facts['distribution_version'] =3D=3D '24.04' + - package_file is exists + - packages is defined =20 =20 --=20 2.47.3