summaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorEgeyar <egeyar.bagcioglu@oracle.com>2019-05-27 13:17:33 (GMT)
committerChris Packham <judge.packham@gmail.com>2020-11-23 06:47:13 (GMT)
commit7fdb7665f718227f98cc5ec3a9bc4a880225e2b9 (patch)
tree7f7d68ef45cdf4bd3f4de342a3d7944d781f9cc6 /maintainer
parented3a1ff4b938f12bcb9bbfdb90d4e3d933d28b2d (diff)
Support released versions from Git branches
* Do not assume a release has a tarball if src_release is set to "n". * Do not assume versions in repositories are all experimental. * Allow versions to define their default repository_branch, repository_cset, repository_subdir and bootstrap. * Do not expect mirrors, archive_filename, archive_dirname, archive_formats and signature_format from a version if src_release is set to "n". * Add version_number to allow version names to be different than the version number. When given, use version_number to compare against the milestones. Signed-off-by: Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
Diffstat (limited to 'maintainer')
-rw-r--r--maintainer/kconfig-versions.template19
1 files changed, 14 insertions, 5 deletions
diff --git a/maintainer/kconfig-versions.template b/maintainer/kconfig-versions.template
index 61414f5..1969354 100644
--- a/maintainer/kconfig-versions.template
+++ b/maintainer/kconfig-versions.template
@@ -53,7 +53,7 @@ config @@fork|@@_PKG_NAME
choice
bool "Source of @@pkg_label@@"
-#!if [ "@@#version@@" -gt 0 ]
+#!if [ "@@#version@@" -gt 0 ] && [ "@@src_release@@" != "n" ]
config @@fork|@@_SRC_RELEASE
bool "Released tarball"
help
@@ -62,9 +62,6 @@ config @@fork|@@_SRC_RELEASE
#!end-if
config @@fork|@@_SRC_DEVEL
bool "Vendor/custom repository"
-#!if [ "@@#version@@" -gt 0 ]
- depends on EXPERIMENTAL
-#!end-if
help
Check out from a repository.
#!if [ -n "@@repository@@" ]
@@ -116,6 +113,9 @@ config @@fork|@@_DEVEL_URL
config @@fork|@@_DEVEL_BRANCH
string "Branch/tag to check out"
+#!foreach version if-differs repository_branch
+ default "@@repository_branch@@" if @@fork|@@_V_@@ver_sel|@@
+#!end-foreach
default "@@repository_branch@@"
help
Git/CVS: branch/tag to be checked out
@@ -126,6 +126,9 @@ config @@fork|@@_DEVEL_BRANCH
config @@fork|@@_DEVEL_REVISION
string "Revision/changeset"
+#!foreach version if-differs repository_cset
+ default "@@repository_cset@@" if @@fork|@@_V_@@ver_sel|@@
+#!end-foreach
default "@@repository_cset@@"
help
Commit ID or revision ID to check out.
@@ -135,6 +138,9 @@ config @@fork|@@_DEVEL_REVISION
config @@fork|@@_DEVEL_SUBDIR
string "Subdirectory in the repository"
+#!foreach version if-differs repository_subdir
+ default "@@repository_subdir@@" if @@fork|@@_V_@@ver_sel|@@
+#!end-foreach
default "@@repository_subdir@@"
help
Some projects produce releases not from the top-level directory in the
@@ -143,6 +149,9 @@ config @@fork|@@_DEVEL_SUBDIR
config @@fork|@@_DEVEL_BOOTSTRAP
string "Bootstrap command"
+#!foreach version if-differs bootstrap
+ default "@@bootstrap@@" if @@fork|@@_V_@@ver_sel|@@
+#!end-foreach
default "@@bootstrap@@"
help
Command to run after checking out. Some projects don't store the generated
@@ -316,7 +325,7 @@ config @@fork|@@_VERSION
default "old" if @@fork|@@_VERY_OLD
default "unknown"
-#!if [ "@@#version@@" -gt 0 ]
+#!if [ "@@#version@@" -gt 0 ] && [ "@@src_release@@" != "n" ]
config @@fork|@@_MIRRORS
string
#!foreach version if-differs mirrors