Add version check in both PCD database generation and service driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@292 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -18,6 +18,20 @@ Module Name: Service.h
|
||||
#ifndef _SERVICE_H
|
||||
#define _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 1
|
||||
|
||||
//
|
||||
// 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)
|
||||
#error "Please make sure the version of PCD Service PEIM and PCD PEI Database Generation Tool matches"
|
||||
#endif
|
||||
|
||||
/* Internal Function definitions */
|
||||
|
||||
PEI_PCD_DATABASE *
|
||||
|
Reference in New Issue
Block a user