raspberrypi-utils/0002-overlaycheck-CMakeLists.patch

25 lines
931 B
Diff
Raw Normal View History

diff --git a/overlaycheck/CMakeLists.txt b/overlaycheck/CMakeLists.txt
index 4b775dd..85a0fb6 100644
2024-04-28 21:28:56 +08:00
--- a/overlaycheck/CMakeLists.txt
+++ b/overlaycheck/CMakeLists.txt
@@ -7,4 +7,4 @@ project(overlaycheck)
#add executables
install(PROGRAMS overlaycheck DESTINATION ${CMAKE_INSTALL_BINDIR})
-install(FILES overlaycheck_exclusions.txt DESTINATION ${CMAKE_INSTALL_BINDIR})
+install(FILES overlaycheck_exclusions.txt DESTINATION ${CMAKE_INSTALL_DATADIR}/raspi-utils)
\ No newline at end of file
diff --git a/overlaycheck/overlaycheck b/overlaycheck/overlaycheck
index e799a93..58a72c5 100755
2024-04-28 21:28:56 +08:00
--- a/overlaycheck/overlaycheck
+++ b/overlaycheck/overlaycheck
@@ -160,7 +160,7 @@ my @cpp_cmd =
);
2024-04-28 21:28:56 +08:00
my $DTC = "$kerndir/scripts/dtc/dtc";
-my $exclusions_file = $0 . "_exclusions.txt";
+my $exclusions_file = "/usr/share/raspi-utils/overlaycheck_exclusions.txt";
my @warnings_to_suppress =
(
'unit_address_vs_reg',