Section.py revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
911106dfb16696472af8c1b7b4c554a829354fa8jm# section base class
911106dfb16696472af8c1b7b4c554a829354fa8jm# Copyright (c) 2007-2011, Intel Corporation. All rights reserved.<BR>
911106dfb16696472af8c1b7b4c554a829354fa8jm# This program and the accompanying materials
911106dfb16696472af8c1b7b4c554a829354fa8jm# are licensed and made available under the terms and conditions of the BSD License
911106dfb16696472af8c1b7b4c554a829354fa8jm# which accompanies this distribution. The full text of the license may be found at
911106dfb16696472af8c1b7b4c554a829354fa8jm# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
911106dfb16696472af8c1b7b4c554a829354fa8jm# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
911106dfb16696472af8c1b7b4c554a829354fa8jm# Import Modules
911106dfb16696472af8c1b7b4c554a829354fa8jm## section base class
BinFileType = {
SectFileType = {
ToolGuid = {
if FileExtension != None:
elif IsSect :
if FfsInf == None:
FileList = []
if FileType != None:
if File.Type == FileType or (int(FfsInf.PiSpecVersion, 16) >= 0x0001000A and FileType == 'DXE_DPEX'and File.Type == 'SMM_DEPEX'):
if '*' in FfsInf.TargetOverrideList or File.Target == '*' or File.Target in FfsInf.TargetOverrideList or FfsInf.TargetOverrideList == []:
GenFdsGlobalVariable.InfLogger ("\nBuild Target \'%s\' of File %s is not in the Scope of %s specified by INF %s in FDF" %(File.Target, File.File, FfsInf.TargetOverrideList, FfsInf.InfFileName))
GenFdsGlobalVariable.VerboseLogger ("\nFile Type \'%s\' of File %s in %s is not same with file type \'%s\' from Rule in FDF" %(File.Type, File.File, FfsInf.InfFileName, FileType))
GenFdsGlobalVariable.InfLogger ("\nCurrent ARCH \'%s\' of File %s is not in the Support Arch Scope of %s specified by INF %s in FDF" %(FfsInf.CurrentArch, File.File, File.Arch, FfsInf.InfFileName))
if Suffix != None: