summaryrefslogtreecommitdiff
path: root/Tools/Java
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-03 06:29:13 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-03 06:29:13 +0000
commit1fcc1b796c0323cfc1e8c67a1454dc1f8324dab6 (patch)
tree9ef3771e69851e1dc18f23d26edf742d222207e9 /Tools/Java
parentef7baf58d031adb9aad451f761a1898190f482f5 (diff)
downloadedk2-platforms-1fcc1b796c0323cfc1e8c67a1454dc1f8324dab6.tar.xz
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
Diffstat (limited to 'Tools/Java')
-rw-r--r--Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java b/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
index 3c21c40184..468b5f9ecc 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
@@ -275,8 +275,13 @@ public class GenBuildTask extends Ant {
//
// Whether the module is built before
//
- if (moduleId.isLibrary() == false && 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 ((moduleId.isLibrary() == false || isSingleModuleBuild) && GlobalData.hasFpdModuleSA(fpdModuleId) == false) {
+ 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;
} else if (GlobalData.isModuleBuilt(fpdModuleId)) {
break;