summaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-06-06 07:50:36 (GMT)
committerAlexey Neyman <stilor@att.net>2018-06-06 07:50:36 (GMT)
commitd7ee16cb2872812cf61ad51469c748df17553c37 (patch)
treed0a94f10efbbf27eb24bf9fdf17f96d021668e26 /maintainer
parent83582f4fd4355f572edab7a6ab7ff5585736ead9 (diff)
Make patch order overridable by individual packages
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rw-r--r--maintainer/kconfig-versions.template40
1 files changed, 40 insertions, 0 deletions
diff --git a/maintainer/kconfig-versions.template b/maintainer/kconfig-versions.template
index d5d4cc8..3db512e 100644
--- a/maintainer/kconfig-versions.template
+++ b/maintainer/kconfig-versions.template
@@ -1,3 +1,5 @@
+#!// This file is not automatically generated, but we want this banner to
+#!// appear in the files produced from it.
#
# DO NOT EDIT! This file is automatically generated.
#
@@ -167,6 +169,44 @@ endif
endchoice
+if EXPERIMENTAL
+choice
+ bool "@@pkg_label@@ patches origin"
+ default @@fork|@@_PATCH_GLOBAL
+
+config @@fork|@@_PATCH_GLOBAL
+ bool "Per global policy"
+
+config @@fork|@@_PATCH_BUNDLED
+ bool "Bundled only"
+
+config @@fork|@@_PATCH_LOCAL
+ bool "Local only"
+ select PATCH_USE_LOCAL
+
+config @@fork|@@_PATCH_BUNDLED_LOCAL
+ bool "Bundled, then local"
+ select PATCH_USE_LOCAL
+
+config @@fork|@@_PATCH_LOCAL_BUNDLED
+ bool "Local, then bundled"
+ select PATCH_USE_LOCAL
+
+config @@fork|@@_PATCH_NONE
+ bool "None"
+
+endchoice
+endif
+
+config @@fork|@@_PATCH_ORDER
+ string
+ default "bundled" if @@fork|@@_PATCH_BUNDLED
+ default "local" if @@fork|@@_PATCH_LOCAL
+ default "bundled,local" if @@fork|@@_PATCH_BUNDLED_LOCAL
+ default "local,bundled" if @@fork|@@_PATCH_LOCAL_BUNDLED
+ default "none" if @@fork|@@_PATCH_NONE
+ default "global"
+
#!// Below, we explicitly select all milestones to which a given version
#!// compares greater-or-equal. We don't select just the latest applicable
#!// (and letting milestones chain-select each other, with FOO_6_or_later