diff options
author | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-14 07:07:11 +0000 |
---|---|---|
committer | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-14 07:07:11 +0000 |
commit | ae20899810f22cb159df398533cc17cb7fb93e3b (patch) | |
tree | aa5e9a8bc079ece91a243469c410cd1254c1b24a /Tools/Source/GenBuild | |
parent | 70edbc34be395ef9697422c88cb436e1c8e3404b (diff) | |
download | edk2-platforms-ae20899810f22cb159df398533cc17cb7fb93e3b.tar.xz |
Fix EDKT117. If SupArchList is not specified, then build the module with all current toolchain supported ARCHs.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1001 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/GenBuild')
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java | 1 | ||||
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java | 36 |
2 files changed, 21 insertions, 16 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java index 2b0fb2346b..73db7de4f4 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java @@ -41,7 +41,6 @@ import org.tianocore.build.id.ModuleIdentification; import org.tianocore.build.id.PlatformIdentification;
import org.tianocore.build.pcd.action.ActionMessage;
import org.tianocore.build.pcd.action.CollectPCDAction;
-import org.tianocore.build.pcd.exception.EntityException;
import org.tianocore.build.toolchain.ToolChainAttribute;
import org.tianocore.build.toolchain.ToolChainElement;
import org.tianocore.build.toolchain.ToolChainMap;
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java b/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java index c2918b7b3b..0dcc80c926 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java +++ b/Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java @@ -1316,7 +1316,9 @@ public class SurfaceAreaQuery { //
// Get Fpd SA Module attribute and create FpdMoudleIdentification.
//
- arch = moduleSA.getSupArchList().toString();
+ if (moduleSA.getSupArchList() != null) {
+ arch = moduleSA.getSupArchList().toString();
+ }
// TBD
fvBinding = null;
@@ -1342,21 +1344,25 @@ public class SurfaceAreaQuery { // Create FpdModule Identification which have class member of module
// identification
//
- if (arch != null) {
- String[] archList = arch.split(" ");
- for (int j = 0; j < archList.length; j++) {
- FpdModuleIdentification fpdSaId = new FpdModuleIdentification(saId, archList[j]);
-
- if (fvBinding != null) {
- fpdSaId.setFvBinding(fvBinding);
- }
-
- //
- // Put element to Map<FpdModuleIdentification, Map<String,
- // Object>>.
- //
- fpdModuleMap.put(fpdSaId, ObjectMap);
+ String[] archList = new String[0];
+ if (arch == null || arch.trim().length() == 0) {
+ archList = GlobalData.getToolChainInfo().getArchs();
+ }
+ else{
+ archList = arch.split(" ");
+ }
+ for (int j = 0; j < archList.length; j++) {
+ FpdModuleIdentification fpdSaId = new FpdModuleIdentification(saId, archList[j]);
+
+ if (fvBinding != null) {
+ fpdSaId.setFvBinding(fvBinding);
}
+
+ //
+ // Put element to Map<FpdModuleIdentification, Map<String,
+ // Object>>.
+ //
+ fpdModuleMap.put(fpdSaId, ObjectMap);
}
}
return fpdModuleMap;
|