#\r
\r
#====================================== External Libraries ========================================\r
+from __future__ import print_function\r
import optparse\r
import Common.LongFilePathOs as os\r
import re\r
# Version and Copyright\r
__version_number__ = ("0.10" + " " + gBUILD_VERSION)\r
__version__ = "%prog Version " + __version_number__\r
-__copyright__ = "Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved."\r
+__copyright__ = "Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved."\r
\r
#====================================== Internal Libraries ========================================\r
\r
status = 3\r
continue\r
if status == 1 and len(line) != 0:\r
- m = secRe.match(line)\r
+ m = secReGeneral.match(line)\r
assert m is not None, "Fail to parse the section in map file , line is %s" % line\r
sec_no, sec_start, sec_length, sec_name, sec_class = m.groups(0)\r
secs.append([int(sec_no, 16), int(sec_start, 16), int(sec_length, 16), sec_name, sec_class])\r
(options, args) = parser.parse_args()\r
\r
if options.mapfile is None or options.efifile is None:\r
- print parser.get_usage()\r
+ print(parser.get_usage())\r
elif os.path.exists(options.mapfile) and os.path.exists(options.efifile):\r
list = parsePcdInfoFromMapFile(options.mapfile, options.efifile)\r
if list is not None:\r
else:\r
generatePcdTable(list, options.mapfile.replace('.map', '.BinaryPcdTable.txt'))\r
else:\r
- print 'Fail to generate Patch PCD Table based on map file and efi file'\r
+ print('Fail to generate Patch PCD Table based on map file and efi file')\r
else:\r
- print 'Fail to generate Patch PCD Table for fail to find map file or efi file!'\r
+ print('Fail to generate Patch PCD Table for fail to find map file or efi file!')\r