Corrected a small bugs:

The macro name generated in autogen should match that in the Service.h.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2281 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2007-01-23 08:28:43 +00:00
parent aacce76100
commit 2b34c3fe63
3 changed files with 5 additions and 5 deletions

View File

@ -22,13 +22,13 @@ Module Name: Service.h
// Please make sure the PCD Serivce PEIM Version is consistent with
// the version of PCD Database generation tool
//
#define PCD_DXE_SERVICE_DRIVER_VERSION 2
#define PCD_SERVICE_DXE_DRIVER_VERSION 2
//
// PCD_DXE_DATABASE_GENTOOL_VERSION is defined in Autogen.h
// and generated by PCD Database generation tool.
//
#if (PCD_DXE_SERVICE_PEIM_VERSION != PCD_DXE_DATABASE_GENTOOL_VERSION)
#if (PCD_SERVICE_DXE_DRIVER_VERSION != PCD_DXE_SERVICE_DRIVER_AUTOGEN_VERSION)
#error "Please make sure the version of PCD Service DXE Driver and PCD DXE Database Generation Tool matches"
#endif

View File

@ -22,13 +22,13 @@ Module Name: Service.h
// Please make sure the PCD Serivce PEIM Version is consistent with
// the version of PCD Database generation tool
//
#define PCD_PEI_SERVICE_DRIVER_VERSION 2
#define PCD_SERVICE_PEIM_VERSION 2
//
// PCD_PEI_DATABASE_GENTOOL_VERSION is defined in Autogen.h
// and generated by PCD Database generation tool.
//
#if (PCD_PEI_SERVICE_PEIM_VERSION != PCD_PEI_DATABASE_GENTOOL_VERSION)
#if (PCD_SERVICE_PEIM_VERSION != PCD_PEI_SERVICE_DRIVER_AUTOGEN_VERSION )
#error "Please make sure the version of PCD Service PEIM and PCD PEI Database Generation Tool matches"
#endif

View File

@ -1205,7 +1205,7 @@ public class PcdDatabase {
hString += result.get("initDeclStr");
hString += result.get("uninitDeclStr");
hString += String.format("#define PCD_%s_SERVICE_DRIVER_VERSION %d", phase, version);
hString += String.format("#define PCD_%s_SERVICE_DRIVER_AUTOGEN_VERSION %d", phase, version);
cString = newLine + newLine + result.get("initInstStr");