Fixed an issue which a library module could be built even it's not in the active platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2525 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -275,8 +275,13 @@ public class GenBuildTask extends Ant {
|
|||||||
//
|
//
|
||||||
// Whether the module is built before
|
// Whether the module is built before
|
||||||
//
|
//
|
||||||
if (moduleId.isLibrary() == false && GlobalData.hasFpdModuleSA(fpdModuleId) == false) {
|
if ((moduleId.isLibrary() == false || isSingleModuleBuild) && GlobalData.hasFpdModuleSA(fpdModuleId) == false) {
|
||||||
EdkLog.log(this, EdkLog.EDK_WARNING, "Warning: " + moduleId + " for " + archList[k] + " was not found in current platform FPD file!\n");
|
if (isSingleModuleBuild) {
|
||||||
|
EdkLog.log(this, EdkLog.EDK_ERROR, "Error: " + moduleId + " for " + archList[k] + " was not found in current platform FPD file!\n");
|
||||||
|
throw new BuildException("No platform containing this module!");
|
||||||
|
} else {
|
||||||
|
EdkLog.log(this, EdkLog.EDK_WARNING, "Warning: " + moduleId + " for " + archList[k] + " was not found in current platform FPD file!\n");
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
} else if (GlobalData.isModuleBuilt(fpdModuleId)) {
|
} else if (GlobalData.isModuleBuilt(fpdModuleId)) {
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user