## @file\r
# Automate the process of building the various reset vector types\r
#\r
-# Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
'Vtf0.nasmb',\r
)\r
ret = RunCommand(commandLine)\r
- print '\tASM\t' + output\r
+ print('\tASM\t' + output)\r
if ret != 0: sys.exit(ret)\r
\r
commandLine = (\r
'Tools/FixupForRawSection.py',\r
output,\r
)\r
- print '\tFIXUP\t' + output\r
+ print('\tFIXUP\t' + output)\r
ret = RunCommand(commandLine)\r
if ret != 0: sys.exit(ret)\r
\r
## @file\r
# Apply fixup to VTF binary image for FFS Raw section\r
#\r
-# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2021, Intel Corporation. All rights reserved.<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
if c > len(d):\r
c -= len(d)\r
f = open(sys.argv[1], 'wb')\r
- f.write('\x90' * c)\r
+ f.write(b'\x90' * c)\r
f.write(d)\r
f.close()\r