]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/FspSecCore/Vtf0/Build.py
2 # Automate the process of building the various reset vector types
4 # Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
14 def RunCommand(commandLine
):
15 #print ' '.join(commandLine)
16 return subprocess
.call(commandLine
)
18 for filename
in glob
.glob(os
.path
.join('Bin', '*.raw')):
23 output
= os
.path
.join('Bin', 'ResetVec')
25 if debugType
is not None:
26 output
+= '.' + debugType
30 '-D', 'ARCH_%s' % arch
.upper(),
31 '-D', 'DEBUG_%s' % str(debugType
).upper(),
33 'ResetVectorCode.asm',
35 ret
= RunCommand(commandLine
)
36 print '\tASM\t' + output
37 if ret
!= 0: sys
.exit(ret
)
41 'Tools/FixupForRawSection.py',
44 print '\tFIXUP\t' + output
45 ret
= RunCommand(commandLine
)
46 if ret
!= 0: sys
.exit(ret
)