From: cel@kernel.org
To: Daniel Gomez <da.gomez@kernel.org>
Cc: <kdevops@lists.linux.dev>, Chuck Lever <chuck.lever@oracle.com>
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 [thread overview]
Message-ID: <20250312185001.1468167-2-cel@kernel.org> (raw)
In-Reply-To: <20250312185001.1468167-1-cel@kernel.org>
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 --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
--
2.48.1
next prev parent reply other threads:[~2025-03-12 18:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 18:49 [RFC PATCH 0/2] Add defaults refs for linux-stable-rc cel
2025-03-12 18:50 ` cel [this message]
2025-03-12 18:50 ` [RFC PATCH 2/2] Add the stable release candidate repo to the Linux git repos menu cel
2025-03-13 15:11 ` Daniel Gomez
2025-03-13 15:26 ` Chuck Lever
2025-03-13 20:13 ` Daniel Gomez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250312185001.1468167-2-cel@kernel.org \
--to=cel@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=da.gomez@kernel.org \
--cc=kdevops@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox