## @file GenMetaFileMisc.py
#
# This file contained the miscellaneous routines for GenMetaFile usage.
#
# 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.
#
'''
GenMetaFileMisc
'''
# AddExternToDefineSec
#
# @param Arch: string of source file family field
# @param ExternList: string of source file FeatureFlag field
#
if EntryPoint:
if FFE:
if UnloadImage:
if FFE:
if Constructor:
if FFE:
if Destructor:
if FFE:
## ObtainPcdName
#
# Using TokenSpaceGuidValue and Token to obtain PcdName from DEC file
#
for PackageDependency in Packages:
#
# Generate generic comment
#
#
#
break
TokenSpaceGuidName = ''
PcdCName = ''
#
# Get TokenSpaceGuidCName from Guids section
#
for GuidKey in DecGuidsDict:
break
break
#
# Retrieve PcdCName from Pcds Section
#
for PcdKey in DecPcdsDict:
if PcdCNameFound:
break
break
return TokenSpaceGuidName, PcdCName
## _TransferDict
# transfer dict that using (Statement, SortedArch) as key,
# (GenericComment, UsageComment) as value into a dict that using SortedArch as
# key and NewStatement as value
#
NewDict = {}
#
# apply the NComment/1Comment rule
#
else:
if SortedArch in NewDict:
else:
return NewDict