]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools:Update build tool to print python version information
authorZhijux Fan <zhijux.fan@intel.com>
Tue, 25 Dec 2018 08:04:28 +0000 (16:04 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Fri, 1 Feb 2019 03:09:22 +0000 (11:09 +0800)
print PYTHON3_ENABLE and PYTHON_COMMAND in build tool

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/build/build.py

index 139a1dfe2983fa2ff037689e3279bab012a54dab..b5b969e876d2d4f526c0517e8025e7e3b1cc304a 100644 (file)
@@ -791,6 +791,12 @@ class Build():
             # Print the same path style with WORKSPACE env.\r
             EdkLogger.quiet("%-16s = %s" % ("EDK_TOOLS_BIN", os.path.normcase(os.path.normpath(os.environ["EDK_TOOLS_BIN"]))))\r
         EdkLogger.quiet("%-16s = %s" % ("CONF_PATH", GlobalData.gConfDirectory))\r
             # Print the same path style with WORKSPACE env.\r
             EdkLogger.quiet("%-16s = %s" % ("EDK_TOOLS_BIN", os.path.normcase(os.path.normpath(os.environ["EDK_TOOLS_BIN"]))))\r
         EdkLogger.quiet("%-16s = %s" % ("CONF_PATH", GlobalData.gConfDirectory))\r
+        if "PYTHON3_ENABLE" in os.environ:\r
+            PYTHON3_ENABLE = os.environ["PYTHON3_ENABLE"]\r
+            if PYTHON3_ENABLE != "TRUE":\r
+                PYTHON3_ENABLE = "FALSE"\r
+            EdkLogger.quiet("%-16s = %s" % ("PYTHON3_ENABLE", PYTHON3_ENABLE))\r
+        EdkLogger.quiet("%-16s = %s" % ("PYTHON", os.environ["PYTHON"]))\r
         self.InitPreBuild()\r
         self.InitPostBuild()\r
         if self.Prebuild:\r
         self.InitPreBuild()\r
         self.InitPostBuild()\r
         if self.Prebuild:\r