summaryrefslogtreecommitdiff
path: root/tests/Kmissingrsource
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-07-15 13:16:47 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-07-15 16:15:43 +0200
commit7a428aa415606820a44291f475248b08e3952c4b (patch)
tree6971486eabcf992acec01ae416bb69633d7ee44f /tests/Kmissingrsource
parentd8a7421d231e504e5b1409d9ed3137b147b3db8d (diff)
Switch to more sensible globbing statements (w/ backwards compatibility)
Instead of having 'source' and 'gsource', have 'source' always glob, but require the pattern to match at least one file, throwing KconfigError otherwise. Have separate 'osource' and 'orsource' statements (the o is for "optional") for cases where it's okay for the pattern to not match any files. This is analogous to 'include' and '-include' in Make. The biggest flaw with 'gsource' was that there was no way to do a globbing match while requiring something to match, possibly leading to subtle failures. Preserve backwards compatibility by having "gsource" and "grsource" be aliases for "osource" and "orsource", respectively. Also include some related changes: - Kconfig.srctree is now set to the empty string if $srctree is unset, rather than to None. This gives nice behavior with os.path.join() and os.path.relpath(), which treat the empty string as the current directory (without adding './', for os.path.join()). - When $srctree is set, Kconfig files in the current directory will no longer override Kconfig files in $srctree when the relative paths match. This was likely a bug all along in the C tools, and probably only makes sense for .config files. I've seen it cause breakage in Zephyr. - Clarify the behavior of $srctree in the Kconfig.__init__() docstring. - Make MenuNode.filename be relative to $srctree for the Kconfig file passed to Kconfig.__init__(). This makes it consistent. The major version will be bumped later due to the small Kconfig.srctree API change.
Diffstat (limited to 'tests/Kmissingrsource')
-rw-r--r--tests/Kmissingrsource1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Kmissingrsource b/tests/Kmissingrsource
new file mode 100644
index 0000000..924b0b3
--- /dev/null
+++ b/tests/Kmissingrsource
@@ -0,0 +1 @@
+rsource "nonexistent"