mirror of https://github.com/acidanthera/audk.git
Fix the PCD bug submitted by Oram, Isaac W:
It is legal that a workspace does *not* contains FPD or a FPD does *not* contains any PCD records, git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@107 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e0c56f04d7
commit
845fdeba64
|
@ -115,22 +115,6 @@ public class PCDAutoGenAction extends BuildAction {
|
|||
if(!isEmulatedPCDDriver && moduleName.length() == 0) {
|
||||
throw new BuildActionException("Wrong module name parameter for PCDAutoGenAction tool!");
|
||||
}
|
||||
|
||||
//
|
||||
// Check the PCD memory database manager is valid.
|
||||
//
|
||||
if(GlobalData.getPCDMemoryDBManager() == null) {
|
||||
throw new BuildActionException("Memory database has not been initlizated!");
|
||||
}
|
||||
|
||||
dbManager = GlobalData.getPCDMemoryDBManager();
|
||||
|
||||
if(dbManager.getDBSize() == 0) {
|
||||
throw new BuildActionException("Memory database does not contain any record!");
|
||||
}
|
||||
|
||||
ActionMessage.debug(this,
|
||||
"PCD memory database contains " + dbManager.getDBSize() + " PCD tokens");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -146,6 +130,22 @@ public class PCDAutoGenAction extends BuildAction {
|
|||
void performAction() throws BuildActionException {
|
||||
ActionMessage.debug(this,
|
||||
"Starting PCDAutoGenAction to generate autogen.h and autogen.c!...");
|
||||
|
||||
//
|
||||
// Check the PCD memory database manager is valid.
|
||||
//
|
||||
if(GlobalData.getPCDMemoryDBManager() == null) {
|
||||
throw new BuildActionException("Memory database has not been initlizated!");
|
||||
}
|
||||
|
||||
dbManager = GlobalData.getPCDMemoryDBManager();
|
||||
|
||||
if(dbManager.getDBSize() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
ActionMessage.debug(this,
|
||||
"PCD memory database contains " + dbManager.getDBSize() + " PCD tokens");
|
||||
|
||||
hAutoGenString = "";
|
||||
cAutoGenString = "";
|
||||
|
|
Loading…
Reference in New Issue