Relax source for IP info during build

This commit is contained in:
ghidra1
2021-03-18 04:50:38 -04:00
parent bbd72ed943
commit 33bba9e614
+8 -8
View File
@@ -204,17 +204,17 @@ def isBashSourceFile(File file) {
* Gets the ip for a file in the module from its header (or certification.manifest) * Gets the ip for a file in the module from its header (or certification.manifest)
*********************************************************************************/ *********************************************************************************/
def getIp(File projectDir, File file) { def getIp(File projectDir, File file) {
String ip = null;
if (isCSourceFile(file)) { if (isCSourceFile(file)) {
return getIpForSourceFile(file, " * IP:"); ip = getIpForSourceFile(file, " * IP:");
} }
if (isBashSourceFile(file)) { else if (isBashSourceFile(file)) {
String ip = getIpForSourceFile(file, "# IP:"); ip = getIpForSourceFile(file, "# IP:");
// allow transition from certification.manifest entry
if (ip != null) {
return ip;
}
} }
return getIpForNonSourceFile(projectDir, file); if (ip == null) {
ip = getIpForNonSourceFile(projectDir, file);
}
return ip;
} }
/********************************************************************************* /*********************************************************************************