diff options
author | Alexey Neyman <stilor@att.net> | 2019-03-25 14:05:25 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2019-04-04 18:57:42 -0700 |
commit | 31002a0c0a5c2efe3ed3861a012a44e4888bf3d2 (patch) | |
tree | 858afd4267cae2e9ab592781f53c0413401174b5 /maintainer | |
parent | cc3686ec2ff8e1e1d36cd2ea0b16922e0a441ed7 (diff) | |
download | crosstool-ng-31002a0c0a5c2efe3ed3861a012a44e4888bf3d2.tar.gz crosstool-ng-31002a0c0a5c2efe3ed3861a012a44e4888bf3d2.tar.bz2 crosstool-ng-31002a0c0a5c2efe3ed3861a012a44e4888bf3d2.zip |
Add an ability to mark a configuration as invalid
... so that the build will fail early and predictably.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rw-r--r-- | maintainer/kconfig-versions.template | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/maintainer/kconfig-versions.template b/maintainer/kconfig-versions.template index 3db512e2..4ac81bea 100644 --- a/maintainer/kconfig-versions.template +++ b/maintainer/kconfig-versions.template @@ -276,6 +276,25 @@ config @@fork|@@_VERY_OLD #!end-foreach endchoice + +# A flag indicating that no valid selections exist for the version. +# This may happen if there are conflicting requirements set by +# the host system and/or other packages. +config @@fork|@@_NO_VERSIONS + def_bool y + select INVALID_CONFIGURATION + depends on !@@fork|@@_VERY_NEW +#!foreach version + depends on !@@fork|@@_V_@@ver_sel|@@ +#!end-foreach + depends on !@@fork|@@_VERY_OLD + +if @@fork|@@_NO_VERSIONS +comment "WARNING!" +comment "| The @@master@@ package has no viable versions" +comment "| due to conflicting constraints." +endif + #!end-if #!if [ -n "@@versionlocked@@" ] |