From patchwork Wed Mar 12 18:50:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 14013767 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3121625745C for ; Wed, 12 Mar 2025 18:50:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741805405; cv=none; b=ZIJBZ8yjwaOqwvsOR9Pdstt6SUWR8ZcB6QA/w61QOiettFQErv2u6NDkXSqV4j9QyC3Vd84GL7NFsqcqF6LEcJCWMtwmBcI3Fez0usljgZhHeH6be/tMfhF/m5xKSkbzFiIWJnwJnWxXQdwYHkapoeHAw7uYQmXORV3MfnAhKVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741805405; c=relaxed/simple; bh=o2MpTdJj6eUUFp+9GCk9CHaSlq5YCM1VuQSYOsF34pQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qpwGFStOyEfa/DZ5O2VRz2GV6it+zbyR4XWr6DhsySmcYUl8SQH8hqqayjERKD908ioC9seIo1zB8OkG/oxoXNgwd0nm46mqNhA46bGwtmmMfcJ2/aTpT1jBLxGm7o8GkWL1LGe/TT4/LSVoaW/hAD7VMU7th9PXMTuQ+4b7hG0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cNdwiFdC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cNdwiFdC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7F36C4CEEA; Wed, 12 Mar 2025 18:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741805405; bh=o2MpTdJj6eUUFp+9GCk9CHaSlq5YCM1VuQSYOsF34pQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cNdwiFdCNxHKol1Uk7vZJJa9d3I14WeBqQEyaYXwt8p13OMzsCNApx6cAsbkMMRVZ oh5jA+MAT0bkrYSPrLmxzeCIg5CoFnNyqL3LmsbBE5rGBTQL7DaPuteQ6U+tnk21HB 2wHrnjCTqD9L5yOsI9wu+EN4gjh7uGPaOn8aMdDRjjcpCAOJXEh188MJ2pF+emuo7j 584eoWcZ31PLwyF3iDSIUzvLyR9nKptHKc6Rf9nQR0UUPbh1ha/fxrEf1cn821bp7n w4Z0OTaS04hxLtg2ujLBwe0MVmQQKNudL2Z8EMU4txoMgyFq5cee3S7X8/oCQUMyo1 /FN/vZ2BjVmCQ== From: cel@kernel.org To: Daniel Gomez Cc: , Chuck Lever Subject: [RFC PATCH 1/2] linux-mirror: Enable choice of clone protocol for stable-rc tree Date: Wed, 12 Mar 2025 14:50:00 -0400 Message-ID: <20250312185001.1468167-2-cel@kernel.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250312185001.1468167-1-cel@kernel.org> References: <20250312185001.1468167-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chuck Lever Add linux-stable-rc to the "Install local mirror setup" menu so that users can select which default protocol and master to pull from. Signed-off-by: Chuck Lever --- Makefile.linux-mirror | 1 + kconfigs/Kconfig.defaults | 12 ++++++++++++ kconfigs/Kconfig.mirror | 41 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/Makefile.linux-mirror b/Makefile.linux-mirror index e2a4b4dcb3ae..2ff18adfda1a 100644 --- a/Makefile.linux-mirror +++ b/Makefile.linux-mirror @@ -17,6 +17,7 @@ LINUX_MIRROR_ARGS += mirror_qemu_jic23_url='$(subst ",,$(CONFIG_MIRROR_KDEVOPS_U LINUX_MIRROR_ARGS += mirror_mcgrof_linus_url='$(subst ",,$(CONFIG_MIRROR_MCGROF_LINUS_URL))' LINUX_MIRROR_ARGS += mirror_mcgrof_url='$(subst ",,$(CONFIG_MIRROR_MCGROF_URL))' LINUX_MIRROR_ARGS += mirror_stable_url='$(subst ",,$(CONFIG_MIRROR_STABLE_URL))' +LINUX_MIRROR_ARGS += mirror_stable_rc_url='$(subst ",,$(CONFIG_MIRROR_STABLE_RC_URL))' LINUX_MIRROR_ARGS += mirror_torvalds_url='$(subst ",,$(CONFIG_MIRROR_TORVALDS_URL))' endif diff --git a/kconfigs/Kconfig.defaults b/kconfigs/Kconfig.defaults index 9e6da24f2921..e03f17872850 100644 --- a/kconfigs/Kconfig.defaults +++ b/kconfigs/Kconfig.defaults @@ -164,6 +164,18 @@ config DEFAULT_STABLE_HTTPS_GOOGLE_URL string default "https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux.git" +config DEFAULT_STABLE_RC_GIT_URL + string + default "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git" + +config DEFAULT_STABLE_RC_HTTPS_URL + string + default "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git" + +config DEFAULT_STABLE_RC_HTTPS_GOOGLE_URL + string + default "https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable-rc.git" + config DEFAULT_VFS_GIT_URL string default "git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git" diff --git a/kconfigs/Kconfig.mirror b/kconfigs/Kconfig.mirror index 18a04ce30235..14e86149175b 100644 --- a/kconfigs/Kconfig.mirror +++ b/kconfigs/Kconfig.mirror @@ -370,6 +370,47 @@ config MIRROR_STABLE_URL default DEFAULT_STABLE_HTTPS_URL if MIRROR_STABLE_HTTPS default DEFAULT_STABLE_HTTPS_GOOGLE_URL if MIRROR_STABLE_HTTPS_GOOGLE +choice + prompt "Linux stable rc mirror protocol/source" + default MIRROR_STABLE_RC_GIT if MIRROR_GIT_WORKS + default MIRROR_STABLE_RC_HTTPS if !MIRROR_GIT_WORKS + depends on INSTALL_LOCAL_LINUX_MIRROR + +config MIRROR_STABLE_RC_HTTPS + bool "HTTPS (kernel.org)" + help + If you enable this option then the mirror will use HTTPS to access + the linux-stable-rc repository on git.kernel.org. The full URL is: + + https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git" + +config MIRROR_STABLE_RC_HTTPS_GOOGLE + bool "HTTPS (Google)" + help + If you enable this option then the mirror will use HTTPS to access + the linux-stable-rc repository on kernel.googlesource.com The full + URL is: + + https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable-rc.git" + +config MIRROR_STABLE_RC_GIT + bool "Git (kernel.org)" + depends on MIRROR_GIT_WORKS + help + If you enable this option then the mirror will use the GIT protocol + to access the linux-stable-rc repository on git.kernel.org. The + full URL is: + + git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git" + +endchoice + +config MIRROR_STABLE_RC_URL + string + default DEFAULT_STABLE_RC_GIT_URL if MIRROR_STABLE_RC_GIT + default DEFAULT_STABLE_RC_HTTPS_URL if MIRROR_STABLE_RC_HTTPS + default DEFAULT_STABLE_RC_HTTPS_GOOGLE_URL if MIRROR_STABLE_RC_HTTPS_GOOGLE + choice prompt "Linux xfs kernel tree" default MIRROR_XFS_GIT if MIRROR_GIT_WORKS