Files
ghidra/0006-exclude-generated-sleigh-files-from-IP-scan.patch

46 lines
1.6 KiB
Diff

From 27d1fefbc99ab2e3dd289f68d6baf83a5c492fe9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Thu, 11 May 2023 21:16:41 +0200
Subject: [PATCH 6/8] exclude generated sleigh files from IP scan
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
gradle/support/ip.gradle | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gradle/support/ip.gradle b/gradle/support/ip.gradle
index bedd453246..a8c737c4e2 100644
--- a/gradle/support/ip.gradle
+++ b/gradle/support/ip.gradle
@@ -154,7 +154,24 @@ def Map<String, List<String>> getIpForModule(Project p) {
exclude "**/*.vcxproj.user"
exclude '**/__pycache__'
exclude '**/*.egg-info'
+ exclude "**/grammar.cc"
+ exclude "**/pcodeparse.cc"
+ exclude "**/slghparse.cc"
+ exclude "**/slghparse.hh"
+ exclude "**/slghscan.cc"
+ exclude "**/xml.cc"
+ exclude "**/sla_dbg/**"
+ exclude "**/sla_opt/**"
+ exclude "**/com_dbg/**"
+ exclude "**/com_opt/**"
+ exclude "**/ghi_dbg/**"
+ exclude "**/ghi_opt/**"
+ exclude "**/ghidra_dbg/**"
+ exclude "**/ghidra_opt/**"
+ exclude "**/sleigh_opt"
+ exclude "**/sleigh_dbg"
}
+
tree.each { file ->
String ip = getIp(p.projectDir, file)
assert ip != null : "No IP found for "+file.path+ " in module: "+p.projectDir
--
2.50.0