summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-17 21:16:21 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-17 21:17:48 +0200
commitc6cb812803741f5e499a2f35673b34a45f575582 (patch)
tree14e32e33da9833d21bdb8ee3538e985851c0ff17
parentdc6237f5906f5f1877c03698aae35fa6d1211a27 (diff)
Remove SRCARCH-related gotcha from module docstring
Now that environment variables are expanded directly with os.path.expandvars(), "$SRCARCH" will be kept as is if SRCARCH isn't set. arch/$SRCARCH/Kconfig won't exist, unlike arch//Kconfig.
-rw-r--r--kconfiglib.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index e669f72..dba97f1 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -95,21 +95,6 @@ possibilities for ARCH and SRCARCH. Kconfiglib will print a warning if an unset
environment variable is referenced inside the Kconfig files.
-Gotcha
-******
-
-It's important to set $SRCARCH even if you don't care about values and only
-want to extract information from Kconfig files, because the top-level Kconfig
-file does this (as of writing):
-
- source "arch/$SRCARCH/Kconfig"
-
-If $SRCARCH is not set, this expands to "arch//Kconfig", and arch/Kconfig
-happens to be an existing file, giving something that appears to work but is
-actually a truncated configuration. The available symbols will differ depending
-on the arch as well.
-
-
Intro to symbol values
======================