mirror of https://github.com/acidanthera/audk.git
Support to handle IPF assembly files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1767 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dddd748e54
commit
3c82f1a543
|
@ -108,15 +108,17 @@ public final class ModuleInfo {
|
|||
|
||||
public final void enroll(String filepath) throws Exception {
|
||||
String temp = null;
|
||||
if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") ||
|
||||
filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni")) {
|
||||
addSourceFile(filepath.replace(modulepath + File.separator, ""), null);
|
||||
} else if (filepath.contains(".inf") || filepath.contains(".msa")) {
|
||||
if (filepath.contains(".inf") || filepath.contains(".msa")) {
|
||||
temp = filepath.replace(modulepath + File.separator, "");
|
||||
if (!temp.contains(File.separator)) { // .inf in subdirectory is not regarded
|
||||
msaorinf.add(temp);
|
||||
}
|
||||
}
|
||||
} else if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") ||
|
||||
filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni") ||
|
||||
filepath.contains(".s") || filepath.contains(".S") || filepath.contains(".i") ||
|
||||
filepath.contains(".asm")) {
|
||||
addSourceFile(filepath.replace(modulepath + File.separator, ""), null);
|
||||
}
|
||||
}
|
||||
|
||||
public static final boolean isModule(String path) {
|
||||
|
|
|
@ -75,7 +75,9 @@ public final class SourceFileReplacer implements Common.ForDoAll {
|
|||
}
|
||||
|
||||
public boolean recognize(String filename) {
|
||||
return filename.contains(".h") || filename.contains(".H") || filename.contains(".uni");
|
||||
return filename.contains(".h") || filename.contains(".H") || filename.contains(".uni") ||
|
||||
filename.contains(".s") || filename.contains(".S") || filename.contains(".asm") ||
|
||||
(!filename.contains(".inf") && filename.contains(".i"));
|
||||
}
|
||||
|
||||
public String namechange(String oldname) {
|
||||
|
|
Loading…
Reference in New Issue