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
This commit is contained in:
qouyang 2006-07-19 10:18:17 +00:00
parent bf5abaffcc
commit 58c5839f2c
2 changed files with 6 additions and 7 deletions

View File

@ -1990,14 +1990,12 @@ public class AutoGen {
// //
Count = 0; Count = 0;
if (exitBootList != null) { if (exitBootList != null) {
if (setVirtualList != null) { for (i = 0; i < exitBootList.length; i++) {
for (i = 0; i < exitBootList.length; i++) { if (exitBootList[i].equalsIgnoreCase("")) {
if (exitBootList[i].equalsIgnoreCase("")) { break;
break;
}
} }
Count = i;
} }
Count = i;
} }
fileBuffer.append(Integer.toString(Count)); fileBuffer.append(Integer.toString(Count));
fileBuffer.append(";\r\n\r\n"); fileBuffer.append(";\r\n\r\n");

View File

@ -17,6 +17,7 @@ package org.tianocore.build.autogen;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set; import java.util.Set;
/** /**
@ -332,7 +333,7 @@ public class CommonDefinition {
* @return String[] String list which remove the duplicate string. * @return String[] String list which remove the duplicate string.
*/ */
public static String[] remDupString (String[] orgList){ public static String[] remDupString (String[] orgList){
Set<String> strList = new HashSet<String>(); Set<String> strList = new LinkedHashSet<String>();
String[] desList ; String[] desList ;
if (orgList == null){ if (orgList == null){
return new String[0]; return new String[0];