Skip to content

Commit

Permalink
Sync BaseTools Branch (version r2321) to EDKII main trunk.
Browse files Browse the repository at this point in the history
Signed-off-by: lgao4
Reviewed-by: gikidy


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12372 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
lgao4 committed Sep 18, 2011
1 parent e7fe402 commit b36d134
Show file tree
Hide file tree
Showing 102 changed files with 2,221 additions and 1,060 deletions.
Binary file modified BaseTools/Bin/Win32/BPDG.exe
Binary file not shown.
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/Fpd2Dsc.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/GenDepex.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/GenFds.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/GenPatchPcdTable.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/MigrationMsa2Inf.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/PatchPcdValue.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/Spd2Dec.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/Split.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/TargetTool.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/TianoCompress.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/Trim.exe
Binary file not shown.
Binary file modified BaseTools/Bin/Win32/UPT.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.
2 changes: 1 addition & 1 deletion BaseTools/Conf/target.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# files.
ACTIVE_PLATFORM = Nt32Pkg/Nt32Pkg.dsc

# TARGET List Optional Zero or more of the following: DEBUG, RELEASE,
# TARGET List Optional Zero or more of the following: DEBUG, RELEASE, NOOPT
# UserDefined; separated by a space character.
# If the line is missing or no value is specified, all
# valid targets specified in the platform description file
Expand Down
848 changes: 686 additions & 162 deletions BaseTools/Conf/tools_def.template

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion BaseTools/Source/C/BootSectImage/bootsectimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Routine Description:
--*/
{
printf ("%s v%d.%d - Utility to break a file into two pieces at the specified offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
printf ("%s v%d.%d %s - Utility to break a file into two pieces at the specified offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 1999-2010 Intel Corporation. All rights reserved.\n");
}

Expand Down
15 changes: 8 additions & 7 deletions BaseTools/Source/C/Common/BasePeCoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,14 @@ Routine Description:
ImageContext,
Section->VirtualAddress + Section->Misc.VirtualSize - 1
);
//
// If the base start or end address resolved to 0, then fail.
//
if ((Base == NULL) || (End == NULL)) {
ImageContext->ImageError = IMAGE_ERROR_SECTION_NOT_LOADED;
return RETURN_LOAD_ERROR;
}

if (ImageContext->IsTeImage) {
Base = (CHAR8 *) ((UINTN) Base + sizeof (EFI_TE_IMAGE_HEADER) - (UINTN) TeHdr->StrippedSize);
End = (CHAR8 *) ((UINTN) End + sizeof (EFI_TE_IMAGE_HEADER) - (UINTN) TeHdr->StrippedSize);
Expand All @@ -987,13 +995,6 @@ Routine Description:
if (End > MaxEnd) {
MaxEnd = End;
}
//
// If the base start or end address resolved to 0, then fail.
//
if ((Base == NULL) || (End == NULL)) {
ImageContext->ImageError = IMAGE_ERROR_SECTION_NOT_LOADED;
return RETURN_LOAD_ERROR;
}

//
// Read the section
Expand Down
1 change: 1 addition & 0 deletions BaseTools/Source/C/Common/CommonLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Module Name:
#define _EFI_COMMON_LIB_H

#include <Common/UefiBaseTypes.h>
#include <Common/BuildVersion.h>
#define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination
//
// Function declarations
Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Routine Description:
--*/
{
printf ("%s v%d.%d -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
printf ("%s v%d.%d %s -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 1999-2010 Intel Corporation. All rights reserved.\n");
}

Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/EfiRom/EfiRom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ Routine Description:
Nothing.
--*/
{
fprintf (stdout, "%s Version %d.%d\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

static
Expand Down
3 changes: 2 additions & 1 deletion BaseTools/Source/C/GenBootSector/GenBootSector.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Module Name:

#include "ParseInf.h"
#include "EfiUtilityMsgs.h"
#include "CommonLib.h"

//
// Utility Name
Expand Down Expand Up @@ -541,7 +542,7 @@ Routine Description:
--*/
{
printf ("%s v%d.%d -Utility to retrieve and update the boot sector or MBR.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
printf ("%s v%d.%d %s -Utility to retrieve and update the boot sector or MBR.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 2009 - 2010 Intel Corporation. All rights reserved.\n");
}

Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/GenCrc32/GenCrc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Routine Description:
--*/
{
fprintf (stdout, "%s Version %d.%d\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

VOID
Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/GenFfs/GenFfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Routine Description:
--*/
{
fprintf (stdout, "%s Version %d.%d\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

STATIC
Expand Down
3 changes: 1 addition & 2 deletions BaseTools/Source/C/GenFv/GenFv.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Module Name:
//
#define UTILITY_MAJOR_VERSION 0
#define UTILITY_MINOR_VERSION 1
#define GENFV_UPDATE_TIME " updated on 2010/2/1"

EFI_GUID mEfiFirmwareFileSystem2Guid = EFI_FIRMWARE_FILE_SYSTEM2_GUID;

Expand All @@ -65,7 +64,7 @@ Routine Description:
--*/
{
fprintf (stdout, "%s Version %d.%d %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, GENFV_UPDATE_TIME);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

STATIC
Expand Down
16 changes: 12 additions & 4 deletions BaseTools/Source/C/GenFv/GenFvInternalLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,11 @@ Routine Description:
// Rebase the PE or TE image in FileBuffer of FFS file for XIP
// Rebase for the debug genfvmap tool
//
FfsRebase (FvInfo, FvInfo->FvFiles[Index], (EFI_FFS_FILE_HEADER *) FileBuffer, (UINTN) *VtfFileImage - (UINTN) FvImage->FileImage, FvMapFile);
Status = FfsRebase (FvInfo, FvInfo->FvFiles[Index], (EFI_FFS_FILE_HEADER *) FileBuffer, (UINTN) *VtfFileImage - (UINTN) FvImage->FileImage, FvMapFile);
if (EFI_ERROR (Status)) {
Error (NULL, 0, 3000, "Invalid", "Could not rebase %s.", FvInfo->FvFiles[Index]);
return Status;
}
//
// copy VTF File
//
Expand Down Expand Up @@ -1124,7 +1128,11 @@ Routine Description:
// Rebase the PE or TE image in FileBuffer of FFS file for XIP.
// Rebase Bs and Rt drivers for the debug genfvmap tool.
//
FfsRebase (FvInfo, FvInfo->FvFiles[Index], (EFI_FFS_FILE_HEADER *) FileBuffer, (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage, FvMapFile);
Status = FfsRebase (FvInfo, FvInfo->FvFiles[Index], (EFI_FFS_FILE_HEADER *) FileBuffer, (UINTN) FvImage->CurrentFilePointer - (UINTN) FvImage->FileImage, FvMapFile);
if (EFI_ERROR (Status)) {
Error (NULL, 0, 3000, "Invalid", "Could not rebase %s.", FvInfo->FvFiles[Index]);
return Status;
}
//
// Copy the file
//
Expand Down Expand Up @@ -3020,7 +3028,7 @@ Routine Description:
return EFI_OUT_OF_RESOURCES;
}
memset ((VOID *) MemoryImagePointer, 0, (UINTN) ImageContext.ImageSize + ImageContext.SectionAlignment);
ImageContext.ImageAddress = ((UINTN) MemoryImagePointer + ImageContext.SectionAlignment - 1) & (~((INT64)ImageContext.SectionAlignment - 1));
ImageContext.ImageAddress = ((UINTN) MemoryImagePointer + ImageContext.SectionAlignment - 1) & (~((UINTN) ImageContext.SectionAlignment - 1));

Status = PeCoffLoaderLoadImage (&ImageContext);
if (EFI_ERROR (Status)) {
Expand Down Expand Up @@ -3247,7 +3255,7 @@ Routine Description:
return EFI_OUT_OF_RESOURCES;
}
memset ((VOID *) MemoryImagePointer, 0, (UINTN) ImageContext.ImageSize + ImageContext.SectionAlignment);
ImageContext.ImageAddress = ((UINTN) MemoryImagePointer + ImageContext.SectionAlignment - 1) & (~(ImageContext.SectionAlignment - 1));
ImageContext.ImageAddress = ((UINTN) MemoryImagePointer + ImageContext.SectionAlignment - 1) & (~((UINTN) ImageContext.SectionAlignment - 1));

Status = PeCoffLoaderLoadImage (&ImageContext);
if (EFI_ERROR (Status)) {
Expand Down
7 changes: 5 additions & 2 deletions BaseTools/Source/C/GenFw/GenFw.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Routine Description:
--*/
{
fprintf (stdout, "%s Version %d.%d\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

STATIC
Expand Down Expand Up @@ -658,7 +658,10 @@ PeCoffConvertImageToXip (
SectionHeader->SizeOfRawData
);
}
SectionHeader->SizeOfRawData = SectionHeader->Misc.VirtualSize;
//
// Make the size of raw data in section header alignment.
//
SectionHeader->SizeOfRawData = (SectionHeader->Misc.VirtualSize + PeHdr->Pe32.OptionalHeader.FileAlignment - 1) & (~(PeHdr->Pe32.OptionalHeader.FileAlignment - 1));
SectionHeader->PointerToRawData = SectionHeader->VirtualAddress;
}

Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/GenPage/GenPage.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Routine Description:
--*/
{
printf ("%s v%d.%d -Utility to generate the EfiLoader image containing page table.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
printf ("%s v%d.%d %s -Utility to generate the EfiLoader image containing page table.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 2008 - 2011 Intel Corporation. All rights reserved.\n");
}

Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/GenSec/GenSec.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Routine Description:
--*/
{
fprintf (stdout, "%s Version %d.%d\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

STATIC
Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/GenVtf/GenVtf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,7 @@ Routine Description:
--*/
{
fprintf (stdout, "%s Version %d.%d\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

VOID
Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/GnuGenBootSector/GnuGenBootSector.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Version (
VOID
)
{
printf ("%s v%d.%d -Utility to retrieve and update the boot sector or MBR.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
printf ("%s v%d.%d %s-Utility to retrieve and update the boot sector or MBR.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 2007-2010 Intel Corporation. All rights reserved.\n");
}

Expand Down
3 changes: 3 additions & 0 deletions BaseTools/Source/C/Include/Common/BuildVersion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//This file is for build version number auto generation
//
#define __BUILD_VERSION "Build 2318"
3 changes: 2 additions & 1 deletion BaseTools/Source/C/LzmaCompress/LzmaCompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "Sdk/C/7zVersion.h"
#include "Sdk/C/LzmaDec.h"
#include "Sdk/C/LzmaEnc.h"
#include "CommonLib.h"

const char *kCantReadMessage = "Can not read input file";
const char *kCantWriteMessage = "Can not write output file";
Expand Down Expand Up @@ -82,7 +83,7 @@ int PrintUserError(char *buffer)

void PrintVersion(char *buffer)
{
sprintf (buffer, "%s Version %d.%d", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
sprintf (buffer, "%s Version %d.%d %s ", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

#define IN_BUF_SIZE (1 << 16)
Expand Down
20 changes: 11 additions & 9 deletions BaseTools/Source/C/Makefiles/app.makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## @file
#
# Copyright (c) 2007 - 2010, 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
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
## @file
#
# Copyright (c) 2007 - 2010, 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
# 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.
#

Expand All @@ -22,4 +22,6 @@ all: $(MAKEROOT)/bin $(APPLICATION)
$(APPLICATION): $(OBJECTS)
$(LINKER) -o $(APPLICATION) $(LFLAGS) $(OBJECTS) -L$(MAKEROOT)/libs $(LIBS)

$(OBJECTS): ../Include/Common/BuildVersion.h

include $(MAKEROOT)/Makefiles/footer.makefile
20 changes: 11 additions & 9 deletions BaseTools/Source/C/Makefiles/ms.app
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## @file
#
# Copyright (c) 2007 - 2010, 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
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
## @file
#
# Copyright (c) 2007 - 2010, 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
# 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
Expand All @@ -19,6 +19,8 @@ $(APPLICATION) : $(OBJECTS)
-@if not exist $(BIN_PATH) mkdir $(BIN_PATH)
$(LD) /nologo /debug /incremental:no /nodefaultlib:libc.lib /out:$@ $(LIBS) $**

$(OBJECTS) : ..\Include\Common\BuildVersion.h

.PHONY:clean
.PHONY:cleanall

Expand Down
3 changes: 2 additions & 1 deletion BaseTools/Source/C/Split/Split.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "ParseInf.h"
#include "CommonLib.h"
#include "EfiUtilityMsgs.h"

//
// Utility Name
//
Expand Down Expand Up @@ -57,7 +58,7 @@ Routine Description:
--*/
{
printf ("%s v%d.%d -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
printf ("%s v%d.%d %s -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 1999-2010 Intel Corporation. All rights reserved.\n");
}

Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/TianoCompress/TianoCompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ Routine Description:
--*/
{
fprintf (stdout, "%s Version %d.%d\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);
fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
}

VOID
Expand Down
16 changes: 15 additions & 1 deletion BaseTools/Source/C/VfrCompile/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,21 @@ LINKER = $(CXX)

EXTRA_CLEAN_OBJECTS = EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h

include $(MAKEROOT)/Makefiles/app.makefile
MAKEROOT ?= ../..

include $(MAKEROOT)/Makefiles/header.makefile

APPLICATION = $(MAKEROOT)/bin/$(APPNAME)

.PHONY:all
all: $(MAKEROOT)/bin $(APPLICATION)

$(APPLICATION): $(OBJECTS)
$(LINKER) -o $(APPLICATION) $(LFLAGS) $(OBJECTS) -L$(MAKEROOT)/libs $(LIBS)

VfrCompiler.o: ../Include/Common/BuildVersion.h

include $(MAKEROOT)/Makefiles/footer.makefile

VfrSyntax.cpp EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h: Pccts/antlr/antlr VfrSyntax.g
Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g
Expand Down
4 changes: 2 additions & 2 deletions BaseTools/Source/C/VfrCompile/VfrCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ CVfrCompiler::Usage (
UINT32 Index;
CONST CHAR8 *Help[] = {
" ",
"VfrCompile version " VFR_COMPILER_VERSION VFR_COMPILER_UPDATE_TIME,
"VfrCompile version " VFR_COMPILER_VERSION __BUILD_VERSION VFR_COMPILER_UPDATE_TIME,
"Copyright (c) 2004-2011 Intel Corporation. All rights reserved.",
" ",
"Usage: VfrCompile [options] VfrFile",
Expand Down Expand Up @@ -728,7 +728,7 @@ CVfrCompiler::GenRecordListFile (
goto Err1;
}

fprintf (pOutFile, "//\n// VFR compiler version " VFR_COMPILER_VERSION "\n//\n");
fprintf (pOutFile, "//\n// VFR compiler version " VFR_COMPILER_VERSION __BUILD_VERSION "\n//\n");
LineNo = 0;
while (!feof (pInFile)) {
if (fgets (LineBuf, MAX_VFR_LINE_LEN, pInFile) != NULL) {
Expand Down
Loading

0 comments on commit b36d134

Please sign in to comment.