## @file InfPomAlignmentMisc.py
# This file contained the routines for InfPomAlignment
#
# Copyright (c) 2011, 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.
#
'''
InfPomAlignmentMisc
'''
##
# Import modules
#
## GenModuleHeaderUserExt
#
#
DefinesDictNew = {}
if EdkReleaseVersion != None:
Name,
if Shadow != None:
Name,
if DpxSource != None:
for DpxSourceItem in DpxSource:
Name,
if PciVendorId != None:
Name,
if PciDeviceId != None:
Name,
if PciClassCode != None:
Name,
if PciRevision != None:
Name,
if PciCompress != None:
Name,
for CustomMakefileItem in CustomMakefile:
#
# Not with Feature Flag Expression
#
else:
Name,
if UefiHiiResourceSection != None:
Name,
return DefinesDictNew
## Generate the define statement that will be put into userextension
# Not support comments.
#
# @param HeaderComment: the original header comment (# not remvoed)
# @param Name: the definition keyword, should not be empty or none
# @param Value: the definition keyword value
# @param TailComment: the original Tail comment (# not remvoed)
#
# @return: the regenerated define statement
#
return Statement
## GenBinaryData
#
#
def GenBinaryData(BinaryData, BinaryObj, BinariesDict, AsBuildIns, BinaryFileObjectList, SupArchList, BinaryModule):
if BinaryModule:
pass
for Item in BinaryData:
else:
TagName = ''
Family = ''
#
# If have architecturie specified, then use the specified architecturie;
# If the section tag does not have an architecture modifier or the modifier is "common" (case in-sensitive),
# and the VALID_ARCHITECTURES comment exists, the list from the VALID_ARCHITECTURES comment
# can be used for the attribute.
# If both not have VALID_ARCHITECTURE comment and no architecturie specified, then keep it empty.
#
else:
SupArchList = ['COMMON']
if Key in BinariesDict:
else: