]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/ResetVector/Vtf0/Build.py
Fix CRLF format
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Build.py
index dad257c16ae32e330c735cf1ab1c4f53cb4bbb6e..826cde0de6173324b5fa8127311a9210db019071 100644 (file)
@@ -1,53 +1,53 @@
-## @file
-#  Automate the process of building the various reset vector types
-#
-#  Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
-#
-#  This program and the accompanying materials
-#  are licensed and made available under the terms and conditions of the BSD License
-#  which accompanies this distribution.  The full text of the license may be found at
-#  http://opensource.org/licenses/bsd-license.php
-#
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#
-
-import glob
-import os
-import subprocess
-import sys
-
-def RunCommand(commandLine):
-    #print ' '.join(commandLine)
-    return subprocess.call(commandLine)
-
-for filename in glob.glob(os.path.join('Bin', '*.raw')):
-    os.remove(filename)
-
-for arch in ('ia32', 'x64'):
-    for debugType in (None, 'port80', 'serial'):
-        output = os.path.join('Bin', 'ResetVector')
-        output += '.' + arch
-        if debugType is not None:
-            output += '.' + debugType
-        output += '.raw'
-        commandLine = (
-            'nasm',
-            '-D', 'ARCH_%s' % arch.upper(),
-            '-D', 'DEBUG_%s' % str(debugType).upper(),
-            '-o', output,
-            'ResetVectorCode.asm',
-            )
-        ret = RunCommand(commandLine)
-        print '\tASM\t' + output
-        if ret != 0: sys.exit(ret)
-
-        commandLine = (
-            'python',
-            'Tools/FixupForRawSection.py',
-            output,
-            )
-        print '\tFIXUP\t' + output
-        ret = RunCommand(commandLine)
-        if ret != 0: sys.exit(ret)
-
+## @file\r
+#  Automate the process of building the various reset vector types\r
+#\r
+#  Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution.  The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\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
+for arch in ('ia32', 'x64'):\r
+    for debugType in (None, 'port80', 'serial'):\r
+        output = os.path.join('Bin', 'ResetVector')\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