## @file\r
# This file is used to define each component of tools_def.txt file\r
#\r
-# Copyright (c) 2007, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2007, 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
# http://opensource.org/licenses/bsd-license.php\r
from TargetTxtClassObject import *\r
\r
##\r
-# Static vailabes used for pattern\r
+# Static variables used for pattern\r
#\r
gMacroRefPattern = re.compile('(DEF\([^\(\)]+\))')\r
gEnvRefPattern = re.compile('(ENV\([^\(\)]+\))')\r
EnvReference = gEnvRefPattern.findall(Value)\r
for Ref in EnvReference:\r
if Ref not in self.MacroDictionary:\r
- return False, Ref\r
- Value = Value.replace(Ref, self.MacroDictionary[Ref])\r
+ Value = Value.replace(Ref, "")\r
+ else:\r
+ Value = Value.replace(Ref, self.MacroDictionary[Ref])\r
+ \r
\r
MacroReference = gMacroRefPattern.findall(Value)\r
for Ref in MacroReference:\r