]>
git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py
2 # Apply fixup to VTF binary image for FFS Raw section
4 # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
11 filename
= sys
.argv
[1]
13 d
= open(sys
.argv
[1], 'rb').read()
14 c
= ((len(d
) + 4 + 7) & ~
7) - 4
17 f
= open(sys
.argv
[1], 'wb')