## @file
# process FFS generation from FILE statement
#
# Copyright (c) 2007 - 2010, 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 Ffs
import Rule
import os
import StringIO
import subprocess
from Common.BuildToolError import *
## generate FFS from FILE
#
#
## The constructor
#
# @param self The object pointer
#
self.CurrentLineNum = None
self.CurrentLineContent = None
self.InfFileName = None
## GenFfs() method
#
# Generate FFS
#
# @param self The object pointer
# @param Dict dictionary contains macro and value pair
# @param FvChildAddr Array of the inside FvImage base address
# @param FvParentAddr Parent Fv base address
# @retval string Generated FFS file name
#
SectionAlignments = None
SectionFiles = [FileName]
SectionFiles = [FileName]
else:
SectionFiles = []
Index = 0
SectionAlignments = []
# process the inside FvImage from FvSection or GuidSection
if FvChildAddr != []:
sectList, align = section.GenSection(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, None, Dict)
if sectList != []:
#
# Prepare the parameter
#
)
return FfsFileOutput