## @file
# process VTF generation
#
# Copyright (c) 2007, 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
#
# 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 Modules
#
import os
## generate VTF
#
#
## The constructor
#
# @param self The object pointer
#
## GenVtf() method
#
# Generate VTF
#
# @param self The object pointer
# @param FdAddressDict dictionary contains FV name and its base address
# @retval Dict FV and corresponding VTF file name
#
Cmd = (
'GenVtf',
) + OutputArg + (
) + BaseAddArg
return VtfRawDict
## GenBsfInf() method
#
# Generate inf used to generate VTF
#
# @param self The object pointer
#
" = " + \
" = " + \
ComponentObj.CompName + \
" = " + \
'N' + \
elif ComponentObj.FilePos != None:
" = " + \
ComponentObj.FilePos + \
else:
if Index == 0:
" = " + \
'F' + \
elif Index == 1:
" = " + \
'S' + \
" = " + \
ComponentObj.CompType + \
" = " + \
ComponentObj.CompVer + \
" = " + \
ComponentObj.CompCs + \
if BinPath != '-':
" = " + \
BinPath + \
if SymPath != '-':
" = " + \
SymPath + \
" = " + \
ComponentObj.CompSize + \
## GenFvList() method
#
# Get FV list referenced by VTF components
#
# @param self The object pointer
#
FvList = []
return FvList
## GetBaseAddressArg() method
#
# Get base address arguments for GenVtf
#
# @param self The object pointer
#
for i in FvList:
CmdStr += (
)
return CmdStr
## GenOutputArg() method
#
# Get output arguments for GenVtf
#
# @param self The object pointer
#
FvVtfDict = {}
OutputFileName = ''
Index = 0