mirror of https://github.com/acidanthera/audk.git
BaseTools: Rename get_bytes_le() to bytes_le
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>
This commit is contained in:
parent
60dc40db2a
commit
0e3bfc6f7a
|
@ -229,7 +229,7 @@ class CapsulePayload(CapsuleData):
|
|||
)
|
||||
if AuthData:
|
||||
Buffer += pack('QIHH', AuthData[0], AuthData[1], AuthData[2], AuthData[3])
|
||||
Buffer += uuid.UUID(AuthData[4]).get_bytes_le()
|
||||
Buffer += uuid.UUID(AuthData[4]).bytes_le
|
||||
|
||||
#
|
||||
# Append file content to the structure
|
||||
|
|
|
@ -187,7 +187,7 @@ if __name__ == '__main__':
|
|||
# Write output file that contains hash GUID, Public Key, Signature, and Input data
|
||||
#
|
||||
args.OutputFile = open(args.OutputFileName, 'wb')
|
||||
args.OutputFile.write(EFI_HASH_ALGORITHM_SHA256_GUID.get_bytes_le())
|
||||
args.OutputFile.write(EFI_HASH_ALGORITHM_SHA256_GUID.bytes_le)
|
||||
args.OutputFile.write(bytearray.fromhex(PublicKey))
|
||||
args.OutputFile.write(Signature)
|
||||
args.OutputFile.write(args.InputFileBuffer)
|
||||
|
|
Loading…
Reference in New Issue