mirror of https://github.com/acidanthera/audk.git
debug pei
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1363 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1eac75f911
commit
cfdfbaca55
|
@ -60,14 +60,11 @@ public final class ModuleInfo {
|
|||
public final Set<String> ppi = new HashSet<String>();
|
||||
|
||||
public final void enroll(String filepath) throws Exception {
|
||||
String[] temp;
|
||||
if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") ||
|
||||
filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni")) {
|
||||
temp = filepath.split("\\\\");
|
||||
localmodulesources.add(temp[temp.length - 1]);
|
||||
localmodulesources.add(filepath.replace(modulepath + "\\", ""));
|
||||
} else if (filepath.contains(".inf") || filepath.contains(".msa")) {
|
||||
temp = filepath.split("\\\\");
|
||||
msaorinf.add(temp[temp.length - 1]);
|
||||
msaorinf.add(filepath.replace(modulepath + "\\", ""));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ public final class ModuleReader {
|
|||
|
||||
public static final void ModuleScan(ModuleInfo m) throws Exception {
|
||||
mi = m;
|
||||
|
||||
|
||||
Common.toDoAll(mi.modulepath, ModuleInfo.class.getMethod("enroll", String.class), mi, null, Common.FILE);
|
||||
|
||||
|
||||
String filename = null;
|
||||
if (mi.msaorinf.isEmpty()) {
|
||||
ModuleInfo.ui.println("No INF nor MSA file found!");
|
||||
|
@ -42,7 +42,7 @@ public final class ModuleReader {
|
|||
} else if (filename.contains(".msa")) {
|
||||
readMsa(filename);
|
||||
}
|
||||
|
||||
|
||||
CommentOutNonLocalHFile();
|
||||
parsePreProcessedSourceCode();
|
||||
|
||||
|
|
Loading…
Reference in New Issue