mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 02:38:43 +08:00
Relax source for IP info during build
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user