diff options
author | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-19 10:18:17 +0000 |
---|---|---|
committer | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-19 10:18:17 +0000 |
commit | 58c5839f2cd597dc0c345000d6482b38dfb42a4b (patch) | |
tree | 45b97f8557c6085063448c3549e7fcaadfd0c711 | |
parent | bf5abaffcce13bb8e0a1a652541f49d5b5f7a7b0 (diff) | |
download | edk2-platforms-58c5839f2cd597dc0c345000d6482b38dfb42a4b.tar.xz |
Modify Autogen.jave to fixed bug: EDKT113.
Modify the COmmonDefinition .java to keep the order of EntryPoint function in autogen.c same with the <ModuleEntryPoint> in MSA.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1047 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java | 10 | ||||
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/autogen/CommonDefinition.java | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java b/Tools/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java index e36945501b..3547808ccb 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java +++ b/Tools/Source/GenBuild/org/tianocore/build/autogen/AutoGen.java @@ -1990,14 +1990,12 @@ public class AutoGen { //
Count = 0;
if (exitBootList != null) {
- if (setVirtualList != null) {
- for (i = 0; i < exitBootList.length; i++) {
- if (exitBootList[i].equalsIgnoreCase("")) {
- break;
- }
+ for (i = 0; i < exitBootList.length; i++) {
+ if (exitBootList[i].equalsIgnoreCase("")) {
+ break;
}
- Count = i;
}
+ Count = i;
}
fileBuffer.append(Integer.toString(Count));
fileBuffer.append(";\r\n\r\n");
diff --git a/Tools/Source/GenBuild/org/tianocore/build/autogen/CommonDefinition.java b/Tools/Source/GenBuild/org/tianocore/build/autogen/CommonDefinition.java index 5f83e4d9df..c6bf678e0b 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/autogen/CommonDefinition.java +++ b/Tools/Source/GenBuild/org/tianocore/build/autogen/CommonDefinition.java @@ -17,6 +17,7 @@ package org.tianocore.build.autogen; import java.util.HashSet;
import java.util.Iterator;
+import java.util.LinkedHashSet;
import java.util.Set;
/**
@@ -332,7 +333,7 @@ public class CommonDefinition { * @return String[] String list which remove the duplicate string.
*/
public static String[] remDupString (String[] orgList){
- Set<String> strList = new HashSet<String>();
+ Set<String> strList = new LinkedHashSet<String>();
String[] desList ;
if (orgList == null){
return new String[0];
|