summaryrefslogtreecommitdiff
path: root/Tools/Java/Source
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-07 07:12:59 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-02-07 07:12:59 +0000
commit9821fa9a8f74a90899b7cb615d2f5a179415850b (patch)
tree8812af13e3141cb77c50c934ec9e3346c9b1ea81 /Tools/Java/Source
parentde093b3c14eebd785c3cd0b73ca1ba0b2c98fb6e (diff)
downloadedk2-9821fa9a8f74a90899b7cb615d2f5a179415850b.zip
edk2-9821fa9a8f74a90899b7cb615d2f5a179415850b.tar.gz
edk2-9821fa9a8f74a90899b7cb615d2f5a179415850b.tar.bz2
Changed the way of handling not supported ARCH for a module. It should not break the build. Instead, it just give a warning message.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2356 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source')
-rw-r--r--Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java8
1 files changed, 6 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 28bfb9e..3c21c40 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
@@ -252,8 +252,9 @@ public class GenBuildTask extends Ant {
List moduleSupportedArchs = saq.getModuleSupportedArchs();
if (moduleSupportedArchs != null) {
for (int k = 0; k < archList.length; k++) {
- if ( ! moduleSupportedArchs.contains(archList[k])) {
- throw new BuildException("Specified architecture [" + archList[k] + "] is not supported by " + moduleId + ". The module " + moduleId + " only supports [" + moduleSupportedArchs + "] architectures.");
+ if (!moduleSupportedArchs.contains(archList[k])) {
+ EdkLog.log(this, EdkLog.EDK_WARNING, "Specified architecture [" + archList[k] + "] is not supported by " + moduleId + ". The module " + moduleId + " only supports [" + moduleSupportedArchs + "] architectures.");
+ archList[k] = "";
}
}
}
@@ -263,6 +264,9 @@ public class GenBuildTask extends Ant {
}
for (int k = 0; k < archList.length; k++) {
+ if (archList[k] == "") {
+ continue;
+ }
getProject().setProperty("ARCH", archList[k]);