Sync EDKII BaseTools to BaseTools project r1940

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10307 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2010-03-23 11:46:50 +00:00
parent fc5de6be8b
commit 79714906ae
24 changed files with 37 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -677,7 +677,7 @@ EFI_STATUS
WriteMapFile ( WriteMapFile (
IN OUT FILE *FvMapFile, IN OUT FILE *FvMapFile,
IN CHAR8 *FileName, IN CHAR8 *FileName,
IN EFI_GUID *FileGuidPtr, IN EFI_FFS_FILE_HEADER *FfsFile,
IN EFI_PHYSICAL_ADDRESS ImageBaseAddress, IN EFI_PHYSICAL_ADDRESS ImageBaseAddress,
IN PE_COFF_LOADER_IMAGE_CONTEXT *pImageContext IN PE_COFF_LOADER_IMAGE_CONTEXT *pImageContext
) )
@ -692,7 +692,7 @@ Arguments:
FvMapFile A pointer to FvMap File FvMapFile A pointer to FvMap File
FileName Ffs File PathName FileName Ffs File PathName
FileGuidPtr Guid Value of Ffs file FfsFile A pointer to Ffs file image.
ImageBaseAddress PeImage Base Address. ImageBaseAddress PeImage Base Address.
pImageContext Image Context Information. pImageContext Image Context Information.
@ -723,7 +723,6 @@ Returns:
UINT32 DataVirtualAddress; UINT32 DataVirtualAddress;
EFI_PHYSICAL_ADDRESS LinkTimeBaseAddress; EFI_PHYSICAL_ADDRESS LinkTimeBaseAddress;
// //
// Init local variable // Init local variable
// //
@ -731,7 +730,7 @@ Returns:
// //
// Print FileGuid to string buffer. // Print FileGuid to string buffer.
// //
PrintGuidToBuffer (FileGuidPtr, (UINT8 *)FileGuidName, MAX_LINE_LEN, TRUE); PrintGuidToBuffer (&FfsFile->Name, (UINT8 *)FileGuidName, MAX_LINE_LEN, TRUE);
// //
// Construct Map file Name // Construct Map file Name
@ -808,7 +807,12 @@ Returns:
fprintf (FvMapFile, "%s (Fixed Flash Address, ", KeyWord); fprintf (FvMapFile, "%s (Fixed Flash Address, ", KeyWord);
fprintf (FvMapFile, "BaseAddress=0x%010llx, ", (unsigned long long) (ImageBaseAddress + Offset)); fprintf (FvMapFile, "BaseAddress=0x%010llx, ", (unsigned long long) (ImageBaseAddress + Offset));
} }
if (FfsFile->Type != EFI_FV_FILETYPE_SECURITY_CORE && pImageContext->Machine == EFI_IMAGE_MACHINE_IA64) {
fprintf (FvMapFile, "EntryPoint=0x%010llx", (unsigned long long) (*(UINT64 *)((UINTN) pImageContext->Handle + (UINTN) AddressOfEntryPoint)));
} else {
fprintf (FvMapFile, "EntryPoint=0x%010llx", (unsigned long long) (ImageBaseAddress + AddressOfEntryPoint)); fprintf (FvMapFile, "EntryPoint=0x%010llx", (unsigned long long) (ImageBaseAddress + AddressOfEntryPoint));
}
fprintf (FvMapFile, ")\n"); fprintf (FvMapFile, ")\n");
fprintf (FvMapFile, "(GUID=%s", FileGuidName); fprintf (FvMapFile, "(GUID=%s", FileGuidName);
@ -3094,7 +3098,7 @@ Returns:
PdbPointer = FileName; PdbPointer = FileName;
} }
WriteMapFile (FvMapFile, PdbPointer, (EFI_GUID *) FfsFile, NewPe32BaseAddress, &OrigImageContext); WriteMapFile (FvMapFile, PdbPointer, FfsFile, NewPe32BaseAddress, &OrigImageContext);
} }
if (FfsFile->Type != EFI_FV_FILETYPE_SECURITY_CORE && if (FfsFile->Type != EFI_FV_FILETYPE_SECURITY_CORE &&
@ -3320,7 +3324,7 @@ Returns:
WriteMapFile ( WriteMapFile (
FvMapFile, FvMapFile,
PdbPointer, PdbPointer,
(EFI_GUID *) FfsFile, FfsFile,
NewPe32BaseAddress, NewPe32BaseAddress,
&OrigImageContext &OrigImageContext
); );

View File

@ -1,3 +1,15 @@
## @file
# Windows makefile for 'LzmaCompress' module build.
#
# Copyright (c) 2009 - 2010, Intel Corporation<BR>
# All rights reserved. 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
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
ARCH ?= IA32 ARCH ?= IA32
MAKEROOT ?= .. MAKEROOT ?= ..

View File

@ -1,3 +1,15 @@
## @file
# Windows makefile for 'LzmaCompress' module build.
#
# Copyright (c) 2009 - 2010, Intel Corporation<BR>
# All rights reserved. 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
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
!INCLUDE ..\Makefiles\ms.common !INCLUDE ..\Makefiles\ms.common
APPNAME = LzmaCompress APPNAME = LzmaCompress

View File

@ -361,7 +361,7 @@ def CreateCCodeDB(FileNameList):
collector = CodeFragmentCollector.CodeFragmentCollector(FullName) collector = CodeFragmentCollector.CodeFragmentCollector(FullName)
try: try:
collector.ParseFile() collector.ParseFile()
except UnicodeError: except:
ParseErrorFileList.append(FullName) ParseErrorFileList.append(FullName)
BaseName = os.path.basename(FullName) BaseName = os.path.basename(FullName)
DirName = os.path.dirname(FullName) DirName = os.path.dirname(FullName)

View File

@ -601,7 +601,7 @@ class PcdReport(object):
FileWrite(File, "Platform Configuration Database Report") FileWrite(File, "Platform Configuration Database Report")
FileWrite(File, " *P - Platform scoped PCD override in DSC file") FileWrite(File, " *P - Platform scoped PCD override in DSC file")
FileWrite(File, " *F - Platform scoped PCD override in FDF file") FileWrite(File, " *F - Platform scoped PCD override in FDF file")
FileWrite(File, " *M - Module scoped PCD override in DSC file") FileWrite(File, " *M - Module scoped PCD override")
FileWrite(File, gSectionSep) FileWrite(File, gSectionSep)
else: else:
# #