summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@oss.qualcomm.com>2025-07-03 20:30:43 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-10-16 13:41:09 +0300
commit5ca97bf64f6447d935210a54b422656f90e502ce (patch)
tree98e04137e226512b4b242c89ca617293fd3afef4 /BaseTools/Source/Python
parent9e815d789bcd7362a4b409ed58b9df8f5ea6f35c (diff)
downloadedk2-5ca97bf64f6447d935210a54b422656f90e502ce.tar.xz
BaseTools/build.py: language cleanup around CheckEnvVariable
The function CheckEnvVariable in fact checks several environment variables. And the comment at its invocation enumerates a specific set of variables, which defeats half the point of abstracting it out into a helper function. Rename the function to the plural form and turn the comment into a list of examples. Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rwxr-xr-xBaseTools/Source/Python/build/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index b0f333a2f0..7c2b96997a 100755
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -82,7 +82,7 @@ TmpTableDict = {}
# If any of above environment variable is not set or has error, the build
# will be broken.
#
-def CheckEnvVariable():
+def CheckEnvVariables():
# check WORKSPACE
if "WORKSPACE" not in os.environ:
EdkLogger.error("build", ATTRIBUTE_NOT_AVAILABLE, "Environment variable not found",
@@ -2615,9 +2615,9 @@ def Main():
ExtraData="Please select one of: %s" % (' '.join(gSupportedTarget)))
#
- # Check environment variable: EDK_TOOLS_PATH, WORKSPACE, PATH
+ # Check environment variables: EDK_TOOLS_PATH, WORKSPACE, PATH, etc...
#
- CheckEnvVariable()
+ CheckEnvVariables()
GlobalData.gCommandLineDefines.update(ParseDefines(Option.Macros))
Workspace = os.getenv("WORKSPACE")