From: Prarit Bhargava <prarit(a)redhat.com>
redhat/Makefile: Move RHGIT* variables to Makefile.variables
Mmove the RHGITURL and RHGITCOMMIT variables to Makefile.variables.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -207,9 +207,6 @@ endif
FLAVOR =
-RHGITURL?=$(shell $(GIT) config rhg.url || $(GIT) config remote.origin.url)
-RHGITCOMMIT?=$(shell $(GIT) log -1 --pretty=format:%H)
-
# this section is needed in order to make O= to work
_OUTPUT := ..
ifeq ("$(origin O)", "command line")
diff --git a/redhat/Makefile.variables b/redhat/Makefile.variables
index blahblah..blahblah 100644
--- a/redhat/Makefile.variables
+++ b/redhat/Makefile.variables
@@ -96,3 +96,12 @@ BUILD ?=
# be set to 1 to decrease the kernel UTS_RELEASE and PKGRELEASE by 11 characters
# (YYYYMMDDgit).
PREBUILD_GIT_ONLY ?=
+
+# This overrides the default git repository for the distg-* targets. See
+# the 'make dist-full-help' entry for distg-brew for information on setting
+# rhg.url.
+RHGITURL?=$(shell $(GIT) config rhg.url || $(GIT) config remote.origin.url)
+
+# This sets the base commit ID for distg-* targets, and must be set on the
+# commandline with distg-* targets.
+RHGITCOMMIT?=$(shell $(GIT) log -1 --pretty=format:%H)
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1641