X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FMigrationTools%2Forg%2Ftianocore%2Fmigration%2FMsaWriter.java;h=2c3c97274e5ba3bde5400520e21dea6fdc4d8045;hp=82e34eea147f608e81b6084833c3d40522b2a8fa;hb=90503bad37fea5edf22531754c203f77268dfa36;hpb=fb840aa8f7471de18152ed8531a862033e21a56f diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java b/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java index 82e34eea14..2c3c97274e 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/MsaWriter.java @@ -58,12 +58,12 @@ public class MsaWriter { if (mi.modulename != null) { msaheader.setModuleName(mi.modulename); } else { - msaheader.setModuleName(mi.modulename = Query("ModuleName Not Found . Please Input ModuleName")); + msaheader.setModuleName(mi.modulename = Query("Module Name Not Found! Please Input ModuleName")); } if (mi.guidvalue != null) { msaheader.setGuidValue(mi.guidvalue); } else { - msaheader.setGuidValue(mi.guidvalue = Query("GuidValue Not Found . Please Input GuidValue")); + msaheader.setGuidValue(mi.guidvalue = Query("Guid Value Not Found! Please Input Guid Value")); } if (mi.moduletype != null) { if (mi.moduletype.contains("PEI")) { @@ -72,13 +72,13 @@ public class MsaWriter { msaheader.setModuleType(ModuleTypeDef.Enum.forString("DXE_DRIVER")); } } else { - msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("GuidValue Not Found . Please Input GuidValue"))); + msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("Guid Value Not Found! Please Input Guid Value"))); } msaheader.setCopyright("Copyright (c) 2006, Intel Corporation"); msaheader.setVersion("1.0"); msaheader.setAbstract("Component name for module " + mi.modulename); - msaheader.setDescription("FIX ME!"); //??? + msaheader.setDescription("FIX ME!"); msaheader.addNewLicense().setStringValue("All rights reserved.\n" + " This software and associated documentation (if any) is furnished\n" + " under a license and may only be used or copied in accordance\n" + @@ -103,9 +103,17 @@ public class MsaWriter { externs.addNewSpecification().setStringValue("EDK_RELEASE_VERSION 0x00020000"); externs.addNewExtern().setModuleEntryPoint(mi.entrypoint); + FilenameDocument.Filename filename; it = mi.localmodulesources.iterator(); + //System.out.println(mi.localmodulesources); while (it.hasNext()) { - sourcefiles.addNewFilename().setStringValue(it.next()); + temp = it.next(); + filename = sourcefiles.addNewFilename(); + filename.setStringValue(temp); + //if (temp.contains("x64" + File.separator)) { + //System.out.println("find"); + //filename.setSupArchList(); + //} } if (!mi.protocol.isEmpty()) { protocols = msa.addNewProtocols();