summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
28fd7b0)
Case1: Cover the Tool PATH is not exist, eg: build MdeModule under GCC5
toolchain and IPF arch.
Case2: Cover the Tool FLAGS is not exist, eg: build OvmfPkg under
CLANG35 toolchain and X64 arch.
fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=595
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
## @file\r
# Create makefile for MS nmake and GNU make\r
#\r
## @file\r
# Create makefile for MS nmake and GNU make\r
#\r
-# Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
Tool = Flag\r
break\r
if Tool:\r
Tool = Flag\r
break\r
if Tool:\r
+ if 'PATH' not in self._AutoGenObject._BuildOption[Tool]:\r
+ EdkLogger.error("build", AUTOGEN_ERROR, "%s_PATH doesn't exist in %s ToolChain and %s Arch." %(Tool, self._AutoGenObject.ToolChain, self._AutoGenObject.Arch), ExtraData="[%s]" % str(self._AutoGenObject))\r
SingleCommandLength += len(self._AutoGenObject._BuildOption[Tool]['PATH'])\r
for item in SingleCommandList[1:]:\r
if FlagDict[Tool]['Macro'] in item:\r
SingleCommandLength += len(self._AutoGenObject._BuildOption[Tool]['PATH'])\r
for item in SingleCommandList[1:]:\r
if FlagDict[Tool]['Macro'] in item:\r
+ if 'FLAGS' not in self._AutoGenObject._BuildOption[Tool]:\r
+ EdkLogger.error("build", AUTOGEN_ERROR, "%s_FLAGS doesn't exist in %s ToolChain and %s Arch." %(Tool, self._AutoGenObject.ToolChain, self._AutoGenObject.Arch), ExtraData="[%s]" % str(self._AutoGenObject))\r
Str = self._AutoGenObject._BuildOption[Tool]['FLAGS']\r
for Option in self._AutoGenObject.BuildOption.keys():\r
for Attr in self._AutoGenObject.BuildOption[Option]:\r
Str = self._AutoGenObject._BuildOption[Tool]['FLAGS']\r
for Option in self._AutoGenObject.BuildOption.keys():\r
for Attr in self._AutoGenObject.BuildOption[Option]:\r