]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Eot/Parser.py
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Source / Python / Eot / Parser.py
index 04afa8f2b8f47268b11132535b3c179ea605a7a2..f204051d01f763af94ec0f694197d8595211bcc8 100644 (file)
@@ -3,13 +3,7 @@
 # Inf/Dsc/Makefile process\r
 #\r
 # Copyright (c) 2008 - 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
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 \r
 ##\r
@@ -47,8 +41,8 @@ def DeCompress(Method, Input):
     Process.communicate()[0]\r
 \r
     # Return the beffer of New.bin\r
-    if os.path.exists('New.bin'):\r
-        return open('New.bin', 'rb').read()\r
+    if os.path.exists('_New.bin'):\r
+        return open('_New.bin', 'rb').read()\r
 \r
 \r
 ## PreProcess() method\r
@@ -62,7 +56,7 @@ def DeCompress(Method, Input):
 #  @param  MergeMultipleLines: Switch for if merge multiple lines\r
 #  @param  LineNo: Default line no\r
 #\r
-#  @return Lines: The file contents after remvoing comments\r
+#  @return Lines: The file contents after removing comments\r
 #\r
 def PreProcess(Filename, MergeMultipleLines = True, LineNo = -1):\r
     Lines = []\r
@@ -770,7 +764,7 @@ def GetParameterName(Parameter):
 #  @param Table: Table to be searched\r
 #  @param Key: The keyword\r
 #\r
-#  @return Value: The value of the the keyword\r
+#  @return Value: The value of the keyword\r
 #\r
 def FindKeyValue(Db, Table, Key):\r
     SqlCommand = """select Value from %s where Name = '%s' and (Model = %s or Model = %s)""" % (Table, Key, MODEL_IDENTIFIER_VARIABLE, MODEL_IDENTIFIER_ASSIGNMENT_EXPRESSION)\r