Skip to content

Commit aa837e8

Browse files
committed
pynfs: Use the local mirror automatically
When USE_LOCAL_LINUX_MIRROR is set, have the pynfs workflow switch automatically from cloning the default remote URL to cloning the local mirror URL. This makes it simpler to maintain the Kconfig configuration. Signed-off-by: Chuck Lever <[email protected]>
1 parent 90ec392 commit aa837e8

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

workflows/pynfs/Kconfig

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
if KDEVOPS_WORKFLOW_ENABLE_PYNFS
22

3-
config PYNFS_GIT
4-
string "pynfs git tree to clone"
5-
default "git://git.linux-nfs.org/projects/cdmackay/pynfs.git"
3+
config HAVE_MIRROR_PYNFS
4+
bool
5+
depends on USE_LIBVIRT_MIRROR
6+
default $(shell, scripts/check_mirror_present.sh /mirror/pynfs.git)
7+
8+
config PYNFS_REPO_CUSTOM
9+
bool "Clone a custom version of the pynfs source code"
10+
default n
611
help
7-
The pynfs git tree to clone.
12+
Choose N to clone the master pynfs source code repo from either
13+
git.linux-nfs.org or a local mirror. Choose Y to enter a custom
14+
URL to clone.
15+
16+
config PYNFS_REPO_URL
17+
string "The URL of the custom pynfs source code repository to clone"
18+
depends on PYNFS_REPO_CUSTOM
19+
help
20+
Enter the URL of the pynfs source code repository to clone.
21+
22+
config PYNFS_GIT
23+
string
24+
default DEFAULT_PYNFS_GIT_URL if !PYNFS_REPO_CUSTOM && !HAVE_MIRROR_PYNFS
25+
default PYNFS_REPO_URL if PYNFS_REPO_CUSTOM
26+
default $(shell, scripts/append-makefile-vars.sh git:// $(KDEVOPS_DEFAULT_BRIDGE_IP_GUESTFS) /mirror/pynfs.git) if HAVE_MIRROR_PYNFS && GUESTFS
827

928
config PYNFS_GIT_TAG
1029
string "tag, branch or sha1sum"

0 commit comments

Comments
 (0)