From nobody Fri Oct 31 09:41:28 2025 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; 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=fail(p=none dis=none) header.from=invisiblethingslab.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1750686443315799.2706467431561; Mon, 23 Jun 2025 06:47:23 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1022375.1398187 (Exim 4.92) (envelope-from ) id 1uThVs-00056S-4f; Mon, 23 Jun 2025 13:47:08 +0000 Received: by outflank-mailman (output) from mailman id 1022375.1398187; Mon, 23 Jun 2025 13:47:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uThVr-00054H-VX; Mon, 23 Jun 2025 13:47:07 +0000 Received: by outflank-mailman (input) for mailman id 1022375; Mon, 23 Jun 2025 13:47:07 +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 1uThVr-00048y-1K for xen-devel@lists.xenproject.org; Mon, 23 Jun 2025 13:47:07 +0000 Received: from fhigh-a4-smtp.messagingengine.com (fhigh-a4-smtp.messagingengine.com [103.168.172.155]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8c31b0be-5038-11f0-b894-0df219b8e170; Mon, 23 Jun 2025 15:47:05 +0200 (CEST) Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id B706A11400B4; Mon, 23 Jun 2025 09:47:04 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 23 Jun 2025 09:47:04 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Jun 2025 09:47:03 -0400 (EDT) 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: 8c31b0be-5038-11f0-b894-0df219b8e170 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1750686424; x=1750772824; bh=Q0IYK2X499 honc0Q7bdViPVpqyeoLI8UjaNIqKckVK8=; b=c7wS3OZK9BWyYsudEoJP9xW96/ kHdR5w38c6RdeM1b+rejugMGAMLkVnzmn1WFCp22Ho4TSzFdqreJBN2xNEYCHlzV vEHLKp2xiAh9BQxVoCWDLJafUFWazewwg1zTvv7tdscFXKSKwioS7mzsT3qiAW9F qUbtzf6oB5vWZcv8B4zb9fYW2n+rP7dmhCrJ3Bkbm61sBV+Qe28rAjXtFhDkBnRd 6pNl4oT+dINW0nMZ6A4sg9bbn2t8kYwzvlWm0FmQ+nSPcYds4/plvMfXQBqDmc/8 r4qeSMoi633SthhNRnTxMLC1If8+Ny11ulPVo6S17dflH9J5CsKJJrlNBtuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1750686424; x= 1750772824; bh=Q0IYK2X499honc0Q7bdViPVpqyeoLI8UjaNIqKckVK8=; b=U ptr+fXdF9J0qPRVnWDDTZzeaNtFLpCnkptT9HxIV5XvkIaKuFI04yyztS8fpkbA1 Lcm9XXdZw2fooS1UH9Nn8XpOq2bDQEcp3x4vMEW+RM4+rxZVDKP30rXP86KddGxV dUKFsI2P5DCZHvh+qNzUvViAf63eX4YQOzBzKGj4QANdH2T64XbiPF4dqhl5WTcm sSFbUQ5JgCIqFbM6Y73lekzKrJriqwzvn/PwOetvDwo1aAUeVVxTDyvXdqCVBv/b LP/ZJsIS80GEXIEstGl/4gR0RrlMjcXjvxY80gp2WLcDIelVPPpuAh0/c1c0xnxA NJH1K+Jo14KIKURP6HL5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddujedukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepofgrrhgvkhcu ofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceomhgrrhhmrghrvghksehinhhvih hsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecuggftrfgrthhtvghrnhepgfelgffg ueffgeejudehieegteeugeefkeejtefghfdvieffieeijefgudeikeegnecuffhomhgrih hnpehgihhtlhgrsgdrtghomhdpkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhmrghrvghksehinhhvihhsih gslhgvthhhihhnghhslhgrsgdrtghomhdpnhgspghrtghpthhtohephedpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtohepgigvnhdquggvvhgvlheslhhishhtshdrgigvnhhprh hojhgvtghtrdhorhhgpdhrtghpthhtoheprghnughrvgifrdgtohhophgvrhefsegtihht rhhigidrtghomhdprhgtphhtthhopehsshhtrggsvghllhhinhhisehkvghrnhgvlhdroh hrghdprhgtphhtthhopehrohhgvghrrdhprghusegtihhtrhhigidrtghomhdprhgtphht thhopehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhm X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , Stefano Stabellini , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Subject: [PATCH test-artifacts v1 4/5] Support building arbitrary Linux branch/tag/commit Date: Mon, 23 Jun 2025 15:46:23 +0200 Message-ID: <7bd5b5d88d6229e5d85396ed18ac654a6f8a59ab.1750684376.git-series.marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1750686445228116600 If LINUX_URL is set, fetch LINUX_VERSION from there. Go with "git init" + "git fetch" instead of "git clone" to support any of branch/tag/commit. This also defines optional linux-git-* jobs which will build the thing if LINUX_GIT_VERSION and LINUX_GIT_URL variables are provided for the pipeline. Signed-off-by: Marek Marczykowski-G=C3=B3recki --- The script variable and job variable need to have different names, so a pipeline variable won't override it for all jobs. While LINUX_VERSION / LINUX_GIT_VERSION is IMO okay, I'm not very happy about LINUX_URL / LINUX_GIT_URL. Any better ideas? --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ scripts/build-linux.sh | 18 +++++++++++++----- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ad44fb4..60af072 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,9 @@ variables: REGISTRY: registry.gitlab.com/xen-project/hardware/test-artifacts + LINUX_GIT_VERSION: + description: "branch/tag/commit for the linux-git jobs" + LINUX_GIT_URL: + description: "git url for the linux-git jobs" =20 stages: - build @@ -46,6 +50,15 @@ linux-6.6.86-arm64: variables: LINUX_VERSION: 6.6.86 =20 +linux-git-arm64: + extends: .arm64-artifacts + script: ./scripts/build-linux.sh + variables: + LINUX_VERSION: $LINUX_GIT_VERSION + LINUX_URL: $LINUX_GIT_URL + rules: + - if: $LINUX_GIT_VERSION && $LINUX_GIT_URL + # # x86_64 artifacts # @@ -70,6 +83,15 @@ linux-6.12.34-x86_64: variables: LINUX_VERSION: 6.12.34 =20 +linux-git-x86_64: + extends: .x86_64-artifacts + script: ./scripts/build-linux.sh + variables: + LINUX_VERSION: $LINUX_GIT_VERSION + LINUX_URL: $LINUX_GIT_URL + rules: + - if: $LINUX_GIT_VERSION && $LINUX_GIT_URL + microcode-x86: extends: .x86_64-artifacts script: ./scripts/x86-microcode.sh diff --git a/scripts/build-linux.sh b/scripts/build-linux.sh index cf0e744..1fc96d1 100755 --- a/scripts/build-linux.sh +++ b/scripts/build-linux.sh @@ -12,11 +12,19 @@ COPYDIR=3D"${WORKDIR}/binaries" UNAME=3D$(uname -m) =20 # Build Linux -MAJOR=3D${LINUX_VERSION%%.*} -curl -fsSLO \ - https://cdn.kernel.org/pub/linux/kernel/v"${MAJOR}".x/linux-"${LINUX_V= ERSION}".tar.xz -tar xf linux-"${LINUX_VERSION}".tar.xz -cd linux-"${LINUX_VERSION}" +if [[ -n "${LINUX_URL}" ]]; then + mkdir linux + cd linux + git init + git fetch --depth=3D1 "${LINUX_URL}" "${LINUX_VERSION}" + git checkout FETCH_HEAD +else + MAJOR=3D${LINUX_VERSION%%.*} + curl -fsSLO \ + https://cdn.kernel.org/pub/linux/kernel/v"${MAJOR}".x/linux-"${LIN= UX_VERSION}".tar.xz + tar xf linux-"${LINUX_VERSION}".tar.xz + cd linux-"${LINUX_VERSION}" +fi =20 make defconfig ./scripts/config --enable BRIDGE --=20 git-series 0.9.1