Skip to content

Commit

Permalink
Sync EDKII BaseTools to BaseTools project r2100.
Browse files Browse the repository at this point in the history
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11118 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
lgao4 committed Dec 6, 2010
1 parent 6a55eea commit 6413702
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 115 deletions.
Binary file modified BaseTools/Bin/Win32/BootSectImage.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/EfiLdrImage.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/EfiRom.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenBootSector.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenCrc32.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenFfs.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenFv.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenFw.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenPage.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenSec.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenVtf.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/LzmaCompress.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/Split.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/TianoCompress.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/VfrCompile.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/VolInfo.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/build.exe
Binary file not shown.
176 changes: 67 additions & 109 deletions BaseTools/Conf/tools_def.template

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions BaseTools/Source/C/Common/ParseInf.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,19 @@ Routine Description:
//
// Add each character to the result
//
if (IsHex || (AsciiString[Index] == '0' && (AsciiString[Index + 1] == 'x' || AsciiString[Index + 1] == 'X'))) {

//
// Skip first two chars only if the string starts with '0x' or '0X'
//
if (AsciiString[Index] == '0' && (AsciiString[Index + 1] == 'x' || AsciiString[Index + 1] == 'X')) {
IsHex = TRUE;
Index += 2;
}
if (IsHex) {
//
// Convert the hex string.
//
for (Index = Index + 2; AsciiString[Index] != '\0'; Index++) {
for (; AsciiString[Index] != '\0'; Index++) {
CurrentChar = AsciiString[Index];
if (CurrentChar == ' ') {
break;
Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/VfrCompile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
!INCLUDE ..\Makefiles\ms.common

CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD /D VFREXP_DEBUG
CPPFLAGS = $(CPPFLAGS) /WX /D PCCTS_USE_NAMESPACE_STD
APPNAME = VfrCompile

LIBS = $(LIB_PATH)\Common.lib
Expand Down
9 changes: 6 additions & 3 deletions BaseTools/Source/Python/AutoGen/GenMake.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def _CreateTemplateDict(self):
% (self._AutoGenObject.BuildTarget, self._AutoGenObject.ToolChain, self._AutoGenObject.Arch),
ExtraData="[%s]" % str(self._AutoGenObject))

# convert dependent libaries to build command
# convert dependent libraries to build command
self.ProcessDependentLibrary()
if len(self._AutoGenObject.Module.ModuleEntryPointList) > 0:
ModuleEntryPoint = self._AutoGenObject.Module.ModuleEntryPointList[0]
Expand Down Expand Up @@ -632,7 +632,7 @@ def ProcessBuildTargetList(self):
if DepSet == None:
DepSet = set()
#
# Extract comman files list in the dependency files
# Extract common files list in the dependency files
#
for File in DepSet:
self.CommonFileDependency.append(self.PlaceMacro(File.Path, self.Macros))
Expand Down Expand Up @@ -728,6 +728,9 @@ def GetDependencyList(self, File, ForceList, SearchPathList):
gDependencyDatabase[self._AutoGenObject.Arch] = {}
DepDb = gDependencyDatabase[self._AutoGenObject.Arch]

# add path of given source file into search path list.
if File.Dir not in SearchPathList:
SearchPathList.append(File.Dir)
while len(FileStack) > 0:
F = FileStack.pop()

Expand Down Expand Up @@ -777,7 +780,7 @@ def GetDependencyList(self, File, ForceList, SearchPathList):
FileStack.append(FilePath)
break
else:
EdkLogger.debug(EdkLogger.DEBUG_9, "%s included by %s was not found"\
EdkLogger.debug(EdkLogger.DEBUG_9, "%s included by %s was not found "\
"in any given path:\n\t%s" % (Inc, F, "\n\t".join(SearchPathList)))

if not MacroUsedByIncludedFile:
Expand Down

0 comments on commit 6413702

Please sign in to comment.