diff mbox series

[v2,1/2] linux-mirror: Enable choice of clone protocol for stable-rc tree

Message ID 20250313210010.1633624-2-cel@kernel.org (mailing list archive)
State New
Headers show
Series Add defaults refs for linux-stable-rc | expand

Checks

Context Check Description
mcgrof/vmtest-main-VM_Test-2 success Logs for Setup and Run Make Targets (debian:testing)
mcgrof/vmtest-main-VM_Test-3 success Logs for Setup and Run Make Targets (debian:testing)
mcgrof/vmtest-main-VM_Test-4 success Logs for Setup and Run Make Targets (fedora:latest)
mcgrof/vmtest-main-VM_Test-5 success Logs for Setup and Run Make Targets (fedora:latest)
mcgrof/vmtest-main-VM_Test-7 success Logs for Setup and Run Make Targets (opensuse/tumbleweed)
mcgrof/vmtest-main-VM_Test-6 success Logs for Setup and Run Make Targets (opensuse/tumbleweed)
mcgrof/vmtest-main-PR fail PR summary
mcgrof/vmtest-main-VM_Test-0 fail Logs for Run kdevops CI
mcgrof/vmtest-main-VM_Test-1 fail Logs for Run kdevops CI

Commit Message

Chuck Lever March 13, 2025, 9 p.m. UTC
From: Chuck Lever <chuck.lever@oracle.com>

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 <chuck.lever@oracle.com>
---
 Makefile.linux-mirror     |  1 +
 kconfigs/Kconfig.defaults | 12 ++++++++++++
 kconfigs/Kconfig.mirror   | 41 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+)
diff mbox series

Patch

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