]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Support recent versions of cx_freeze.
authorMarvin Haeuser <Marvin.Haeuser@outlook.com>
Sun, 21 Feb 2016 00:46:59 +0000 (08:46 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Tue, 15 Mar 2016 09:03:10 +0000 (17:03 +0800)
This patch fixes the assumed invalid command to start recent versions
of cx_freeze on Windows, which are python and not Windows
executables. To launch them correctly, the '$(PYTHON_HOME)\python'
prefix has been added, so that Python can interpret the tool.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/Makefile

index 4eea515d9b9cd0ee57bb4335142fb8fdbd03dcca..8bc213b47c2e94555722847ce65e68793f1c8a02 100644 (file)
@@ -17,7 +17,7 @@
 \r
 !IF EXIST ($(PYTHON_FREEZER_PATH)\cxfreeze)\r
 # Using cx_Freeze 4.2.3 with Python 2.7.2\r
-FREEZE=$(PYTHON_FREEZER_PATH)\cxfreeze\r
+FREEZE=$(PYTHON_HOME)\python $(PYTHON_FREEZER_PATH)\cxfreeze\r
 !ELSE\r
 # Using cx_Freeze 3.0.3 with Python 2.5.4\r
 FREEZE=$(PYTHON_FREEZER_PATH)\FreezePython.exe\r