+++ /dev/null
-## @file\r
-# Automate the process of building the various reset vector types\r
-#\r
-# Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
-#\r
-# SPDX-License-Identifier: BSD-2-Clause-Patent\r
-#\r
-\r
-import glob\r
-import os\r
-import subprocess\r
-import sys\r
-\r
-def RunCommand(commandLine):\r
- #print ' '.join(commandLine)\r
- return subprocess.call(commandLine)\r
-\r
-for filename in glob.glob(os.path.join('Bin', '*.raw')):\r
- os.remove(filename)\r
-\r
-arch = 'ia32'\r
-debugType = None\r
-output = os.path.join('Bin', 'ResetVec')\r
-output += '.' + arch\r
-if debugType is not None:\r
- output += '.' + debugType\r
-output += '.raw'\r
-commandLine = (\r
- 'nasm',\r
- '-D', 'ARCH_%s' % arch.upper(),\r
- '-D', 'DEBUG_%s' % str(debugType).upper(),\r
- '-o', output,\r
- 'ResetVectorCode.asm',\r
- )\r
-ret = RunCommand(commandLine)\r
-print '\tASM\t' + output\r
-if ret != 0: sys.exit(ret)\r
-\r
-commandLine = (\r
- 'python',\r
- 'Tools/FixupForRawSection.py',\r
- output,\r
- )\r
-print '\tFIXUP\t' + output\r
-ret = RunCommand(commandLine)\r
-if ret != 0: sys.exit(ret)\r
-\r