]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Rename get_bytes_le() to bytes_le
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 26 Sep 2018 03:07:26 +0000 (11:07 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sat, 13 Oct 2018 01:56:56 +0000 (09:56 +0800)
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/GenFds/CapsuleData.py
BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py

index 651a16ec753a3c0098ad1318174aa50539cb2714..5f93734935c2921015871941246fc06864489de6 100644 (file)
@@ -229,7 +229,7 @@ class CapsulePayload(CapsuleData):
                        )\r
         if AuthData:\r
             Buffer += pack('QIHH', AuthData[0], AuthData[1], AuthData[2], AuthData[3])\r
-            Buffer += uuid.UUID(AuthData[4]).get_bytes_le()\r
+            Buffer += uuid.UUID(AuthData[4]).bytes_le\r
 \r
         #\r
         # Append file content to the structure\r
index 6cb235ae759f732ed72c5ef4a8e138d56e8ebb13..2f901a7f29fa4c6dca786901099c7cf511c01900 100644 (file)
@@ -187,7 +187,7 @@ if __name__ == '__main__':
     # Write output file that contains hash GUID, Public Key, Signature, and Input data\r
     #\r
     args.OutputFile = open(args.OutputFileName, 'wb')\r
-    args.OutputFile.write(EFI_HASH_ALGORITHM_SHA256_GUID.get_bytes_le())\r
+    args.OutputFile.write(EFI_HASH_ALGORITHM_SHA256_GUID.bytes_le)\r
     args.OutputFile.write(bytearray.fromhex(PublicKey))\r
     args.OutputFile.write(Signature)\r
     args.OutputFile.write(args.InputFileBuffer)\r