mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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>
This commit is contained in:
parent
9e815d789b
commit
5ca97bf64f
1 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue