Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
GenFds: update Fdf parser to make raw acpi and asl section could be o…
…ptional; update section generation to search build output files in directory and all sub-directory.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1307 7335b38e-4728-0410-8992-fb3ffe349368
  • Loading branch information
jlin16 committed Aug 22, 2008
1 parent 4d3a0c1 commit d661d6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Python/GenFds/FdfParser.py
Expand Up @@ -3000,7 +3000,7 @@ def __GetEfiSection(self, Obj):
# @retval False section never optional
#
def __RuleSectionCouldBeOptional(self, SectionType):
if SectionType in ("DXE_DEPEX", "UI", "VERSION", "PEI_DEPEX"):
if SectionType in ("DXE_DEPEX", "UI", "VERSION", "PEI_DEPEX", "RAW"):
return True
else:
return False
Expand Down
9 changes: 8 additions & 1 deletion Source/Python/GenFds/Section.py
Expand Up @@ -139,7 +139,14 @@ def GetFileList(FfsInf, FileType, FileExtension, Dict = {}):
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.BinaryFile, File.SupArchList, FfsInf.InfFileName))

if Suffix != None and os.path.exists(FfsInf.EfiOutputPath):
FileList.extend(glob.glob(os.path.join(FfsInf.EfiOutputPath, "*" + Suffix)))
# FileList.extend(glob.glob(os.path.join(FfsInf.EfiOutputPath, "*" + Suffix)))
# Update to search files with suffix in all sub-dirs.
Tuple = os.walk(FfsInf.EfiOutputPath)
for Dirpath, Dirnames, Filenames in Tuple:
for F in Filenames:
if os.path.splitext(F)[1] in (Suffix):
FullName = os.path.join(Dirpath, F)
FileList.append(FullName)

return FileList, IsSect
GetFileList = staticmethod(GetFileList)

0 comments on commit d661d6c

Please sign in to comment.