mirror of https://github.com/acidanthera/audk.git
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1250 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9136b0e0ba
commit
fb840aa8f7
|
@ -36,9 +36,9 @@ public class MsaWriter {
|
||||||
private MsaHeaderDocument.MsaHeader msaheader = msa.addNewMsaHeader();
|
private MsaHeaderDocument.MsaHeader msaheader = msa.addNewMsaHeader();
|
||||||
private ModuleDefinitionsDocument.ModuleDefinitions md = msa.addNewModuleDefinitions();
|
private ModuleDefinitionsDocument.ModuleDefinitions md = msa.addNewModuleDefinitions();
|
||||||
private SourceFilesDocument.SourceFiles sourcefiles = msa.addNewSourceFiles(); //found local .h files are not written
|
private SourceFilesDocument.SourceFiles sourcefiles = msa.addNewSourceFiles(); //found local .h files are not written
|
||||||
private GuidsDocument.Guids guids = msa.addNewGuids();
|
private GuidsDocument.Guids guids;
|
||||||
private ProtocolsDocument.Protocols protocols = msa.addNewProtocols();
|
private ProtocolsDocument.Protocols protocols;
|
||||||
private PPIsDocument.PPIs ppis = msa.addNewPPIs();
|
private PPIsDocument.PPIs ppis;
|
||||||
private PackageDependenciesDocument.PackageDependencies pd = msa.addNewPackageDependencies();
|
private PackageDependenciesDocument.PackageDependencies pd = msa.addNewPackageDependencies();
|
||||||
private LibraryClassDefinitionsDocument.LibraryClassDefinitions libclassdefs = msa.addNewLibraryClassDefinitions();
|
private LibraryClassDefinitionsDocument.LibraryClassDefinitions libclassdefs = msa.addNewLibraryClassDefinitions();
|
||||||
private ExternsDocument.Externs externs = msa.addNewExterns();
|
private ExternsDocument.Externs externs = msa.addNewExterns();
|
||||||
|
@ -74,6 +74,7 @@ public class MsaWriter {
|
||||||
} else {
|
} else {
|
||||||
msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("GuidValue Not Found . Please Input GuidValue")));
|
msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("GuidValue Not Found . Please Input GuidValue")));
|
||||||
}
|
}
|
||||||
|
|
||||||
msaheader.setCopyright("Copyright (c) 2006, Intel Corporation");
|
msaheader.setCopyright("Copyright (c) 2006, Intel Corporation");
|
||||||
msaheader.setVersion("1.0");
|
msaheader.setVersion("1.0");
|
||||||
msaheader.setAbstract("Component name for module " + mi.modulename);
|
msaheader.setAbstract("Component name for module " + mi.modulename);
|
||||||
|
@ -86,6 +87,7 @@ public class MsaWriter {
|
||||||
" reproduced, stored in a retrieval system, or transmitted in any\n" +
|
" reproduced, stored in a retrieval system, or transmitted in any\n" +
|
||||||
" form or by any means without the express written consent of\n" +
|
" form or by any means without the express written consent of\n" +
|
||||||
" Intel Corporation.");
|
" Intel Corporation.");
|
||||||
|
msaheader.setSpecification("FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052");
|
||||||
|
|
||||||
List<Enum> arch = new ArrayList<Enum>();
|
List<Enum> arch = new ArrayList<Enum>();
|
||||||
arch.add(SupportedArchitectures.IA_32);
|
arch.add(SupportedArchitectures.IA_32);
|
||||||
|
@ -105,28 +107,37 @@ public class MsaWriter {
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
sourcefiles.addNewFilename().setStringValue(it.next());
|
sourcefiles.addNewFilename().setStringValue(it.next());
|
||||||
}
|
}
|
||||||
it = mi.protocol.iterator();
|
if (!mi.protocol.isEmpty()) {
|
||||||
while (it.hasNext()) {
|
protocols = msa.addNewProtocols();
|
||||||
if ((temp = it.next()) != null) {
|
it = mi.protocol.iterator();
|
||||||
ProtocolsDocument.Protocols.Protocol pr = protocols.addNewProtocol();
|
while (it.hasNext()) {
|
||||||
pr.setProtocolCName(temp);
|
if ((temp = it.next()) != null) {
|
||||||
pr.setUsage(UsageTypes.ALWAYS_CONSUMED);
|
ProtocolsDocument.Protocols.Protocol pr = protocols.addNewProtocol();
|
||||||
|
pr.setProtocolCName(temp);
|
||||||
|
pr.setUsage(UsageTypes.ALWAYS_CONSUMED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it = mi.ppi.iterator();
|
if (!mi.ppi.isEmpty()) {
|
||||||
while (it.hasNext()) {
|
ppis = msa.addNewPPIs();
|
||||||
if ((temp = it.next()) != null) {
|
it = mi.ppi.iterator();
|
||||||
PPIsDocument.PPIs.Ppi pp = ppis.addNewPpi();
|
while (it.hasNext()) {
|
||||||
pp.setPpiCName(temp);
|
if ((temp = it.next()) != null) {
|
||||||
pp.setUsage(UsageTypes.ALWAYS_CONSUMED);
|
PPIsDocument.PPIs.Ppi pp = ppis.addNewPpi();
|
||||||
|
pp.setPpiCName(temp);
|
||||||
|
pp.setUsage(UsageTypes.ALWAYS_CONSUMED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it = mi.guid.iterator();
|
if (!mi.guid.isEmpty()) {
|
||||||
while (it.hasNext()) {
|
guids = msa.addNewGuids();
|
||||||
if ((temp = it.next()) != null) {
|
it = mi.guid.iterator();
|
||||||
GuidsDocument.Guids.GuidCNames gcn = guids.addNewGuidCNames();
|
while (it.hasNext()) {
|
||||||
gcn.setGuidCName(temp);
|
if ((temp = it.next()) != null) {
|
||||||
gcn.setUsage(UsageTypes.ALWAYS_CONSUMED);
|
GuidsDocument.Guids.GuidCNames gcn = guids.addNewGuidCNames();
|
||||||
|
gcn.setGuidCName(temp);
|
||||||
|
gcn.setUsage(UsageTypes.ALWAYS_CONSUMED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it = mi.hashrequiredr9libs.iterator();
|
it = mi.hashrequiredr9libs.iterator();
|
||||||
|
|
Loading…
Reference in New Issue