From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3283198851 for ; Mon, 28 Jul 2025 01:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753665281; cv=none; b=AxJKm9IUmxEtNO81A+y2+BXK19a1Dzz8EPFbBspW62A2BNUegKqMKbPOoM57jgNNIMaZkq5oYXzRiOSDtwBgHFd/GL68ZnfV90Gi6jbljuTH5JAkOLIDNPgaYOrA2gJ5QSvroBWb4RSgpbrXlbJTEvyYQTL0luc/imo8ObX5tzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753665281; c=relaxed/simple; bh=Be/hCO1J0BtCYMzHcg8S41JogK0Pby23VWQeIkIaBEQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X4m09f4vk/f8447fCcshCMY2N7qS+hBhNA25ML4LKssqBLNMsB4GQZ09nDUntspV9uDTYWYWDmfLUP0+2rZ9+wyngSppbtev1ifKwH7ebnh6jgbXhgPtCUHb6uIVGqoMRFoCSLC9GDxkwCODvGynhJh9p3IyQnp9k5YEnH5LdnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=4Im+drRs; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="4Im+drRs" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=Leqn2/bwwBvcpBgv8yj7dT6NjFWPX7uRRkwPEKxXNmA=; b=4Im+drRs/+AVYViuKMmHz5dzah o2xu6rhvCis3cFcAo9eNJ6Kzd3AWrlkc+VyduIVbBOn3yHMV2wOsF/AyTrqhKRFCrNPSBh1Ec+ZnT oQf5m9x9SwM1d3G2N8Fa8g2TI/rsQIlBYtJAhzaFofVPAdBn+YKKCIGDZPNPsvChpwLhbBXYtXANe oYPHa8WhxHLBjZR9jl/eZyQdvQrYLzWxVs1P6GznND1NBHgP0kjZuglGEs3vDfKX8ZxwSP5UQ8aRM tR/zi0klJYNushVC4KczZUgs18GvBM/rn1JkGvehYEzIXN3+rOoapUPRzySFIfG+rZNacMyFmd2d5 UMVvn/vA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugCRo-0000000DPkv-1llE; Mon, 28 Jul 2025 01:14:36 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Chuck Lever Subject: [PATCH v2 25/33] workflows: Add a kconfig setting for installing kernels via package Date: Sun, 27 Jul 2025 18:14:25 -0700 Message-ID: <20250728011434.3197091-26-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250728011434.3197091-1-mcgrof@kernel.org> References: <20250728011434.3197091-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain From: Chuck Lever When the "Target Linux kernel to use" is set to "Upstream Linux or custom kernel", the bootlinux role is enabled in order to download, build and install the kernel to be tested. When installing the kernel from .rpm or .deb packages, however, the download and build phases have already been done, so it doesn't make sense to add an option under the "Get and install Linux from git" menu to make that happen. Instead, add an option directly to the "Target Linux kernel to use" menu that will enable the ability to install the test kernel from packages. For the moment, this option does nothing. Signed-off-by: Chuck Lever --- kconfigs/workflows/Kconfig | 18 ++++++++++++++++++ playbooks/roles/bootlinux/defaults/main.yml | 2 ++ scripts/ci.Makefile | 8 ++++++++ 3 files changed, 28 insertions(+) diff --git a/kconfigs/workflows/Kconfig b/kconfigs/workflows/Kconfig index a1d2c331..b1b8a48b 100644 --- a/kconfigs/workflows/Kconfig +++ b/kconfigs/workflows/Kconfig @@ -37,6 +37,18 @@ config WORKFLOW_LINUX_CUSTOM linux, linux-stable, linux-next, or a custom kernel you want to build and install enable this. +config WORKFLOW_LINUX_PACKAGED + bool "Install pre-built kernel package" + output yaml + help + Choose this option to install a pre-built kernel package on each + target node. + + By default, the kernel packages reside in + workflows/linux/artifacts. Later we can introduce a Kconfig + option that lets kdevops pull the packages from other + locations. + endchoice if WORKFLOW_LINUX_CUSTOM @@ -54,6 +66,12 @@ source "workflows/linux/Kconfig" endmenu endif # WORKFLOW_LINUX_CUSTOM +if WORKFLOW_LINUX_PACKAGED +config BOOTLINUX + bool + default y +endif # WORKFLOW_LINUX_PACKAGED + config WORKFLOWS_TESTS bool "Enable selection of test workflows" default n diff --git a/playbooks/roles/bootlinux/defaults/main.yml b/playbooks/roles/bootlinux/defaults/main.yml index 50ce96bf..5b03f0c6 100644 --- a/playbooks/roles/bootlinux/defaults/main.yml +++ b/playbooks/roles/bootlinux/defaults/main.yml @@ -41,6 +41,8 @@ uninstall_kernel_enable: False bootlinux_b4_am_this_host: False bootlinux_9p: False +bootlinux_targets: false +bootlinux_builder: false kdevops_workflow_enable_cxl: False diff --git a/scripts/ci.Makefile b/scripts/ci.Makefile index 0d82fa92..1c47c618 100644 --- a/scripts/ci.Makefile +++ b/scripts/ci.Makefile @@ -5,6 +5,8 @@ CI_WORKFLOW ?= ifeq (y,$(CONFIG_BOOTLINUX)) +ifneq (y,$(CONFIG_WORKFLOW_LINUX_PACKAGED)) + ifeq ($(strip $(CI_WORKFLOW)),) CI_WORKFLOW_BASENAME := $(shell basename $(CONFIG_BOOTLINUX_TREE) | sed 's/\.git$$//') else @@ -81,6 +83,12 @@ ci-test: ci-build-test: endif # We have ci build tests entries +else # CONFIG_WORKFLOW_LINUX_PACKAGED +ci-results: +ci-test: +ci-build-test: +endif # CONFIG_WORKFLOW_LINUX_PACKAGED + else # CONFIG_BOOTLINUX ci-results: ci-test: -- 2.47.2