From c6cb812803741f5e499a2f35673b34a45f575582 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 17 May 2018 21:16:21 +0200 Subject: 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. --- kconfiglib.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'kconfiglib.py') 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 ====================== -- cgit v1.2.3