mirror of https://github.com/acidanthera/audk.git
MsaOwner usable
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1645 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1ea5992991
commit
190293ab4e
|
@ -53,12 +53,11 @@ public class MigrationTool {
|
|||
}
|
||||
|
||||
new MsaWriter(mi).flush();
|
||||
/*
|
||||
|
||||
mi.addProtocol("protocol", UsageTypes.ALWAYS_CONSUMED);
|
||||
mi.addGuid("guid", UsageTypes.ALWAYS_CONSUMED);
|
||||
mi.addLibraryClass("class", UsageTypes.ALWAYS_CONSUMED);
|
||||
mi.addPpi("ppi", UsageTypes.ALWAYS_CONSUMED);
|
||||
mi.addProtocol("protocol", UsageTypes.ALWAYS_CONSUMED);
|
||||
*/
|
||||
mi.getMsaOwner().flush(MigrationTool.ModuleInfoMap.get(mi) + File.separator + "Migration_" + mi.modulename + File.separator + mi.modulename + ".___");
|
||||
|
||||
if (MigrationTool.doCritic) {
|
||||
|
|
|
@ -60,7 +60,6 @@ public final class ModuleInfo {
|
|||
|
||||
public final boolean addProtocol (String proname, UsageTypes.Enum usage) {
|
||||
//protocols.add(proname);
|
||||
System.out.println("I'm in");
|
||||
return msaowner.addProtocol(proname, usage);
|
||||
}
|
||||
|
||||
|
|
|
@ -58,11 +58,9 @@ public class MsaOwner {
|
|||
}
|
||||
|
||||
LibraryClassDocument.LibraryClass classname;
|
||||
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
|
||||
classname = libclassdefs.addNewLibraryClass();
|
||||
classname.setKeyword(name);
|
||||
arch.add(usage);
|
||||
classname.setSupArchList(arch);
|
||||
classname.setUsage(usage);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -80,11 +78,9 @@ public class MsaOwner {
|
|||
}
|
||||
|
||||
GuidsDocument.Guids.GuidCNames guid;
|
||||
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
|
||||
guid = guids.addNewGuidCNames();
|
||||
guid.setGuidCName(guidname);
|
||||
arch.add(usage);
|
||||
guid.setSupArchList(arch);
|
||||
guid.setUsage(usage);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -103,11 +99,9 @@ public class MsaOwner {
|
|||
}
|
||||
|
||||
PPIsDocument.PPIs.Ppi ppi;
|
||||
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
|
||||
ppi = ppis.addNewPpi();
|
||||
ppi.setPpiCName(ppiname);
|
||||
arch.add(usage);
|
||||
ppi.setSupArchList(arch);
|
||||
ppi.setUsage(usage);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -150,11 +144,9 @@ public class MsaOwner {
|
|||
}
|
||||
|
||||
ProtocolsDocument.Protocols.Protocol protocol;
|
||||
List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();
|
||||
protocol = protocols.addNewProtocol();
|
||||
protocol.setProtocolCName(proname);
|
||||
arch.add(usage);
|
||||
protocol.setSupArchList(arch);
|
||||
protocol.setUsage(usage);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue