[1/2] checkrootfiles: add riscv64 checks

Message ID 20230228185517.15155-1-arne_f@ipfire.org
State Accepted
Commit 2a9688211ea8930d0a3b9f7ac5ef7a18dbabe296
Headers
Series [1/2] checkrootfiles: add riscv64 checks |

Commit Message

Arne Fitzenreiter Feb. 28, 2023, 6:55 p.m. UTC
  ---
 tools/checkrootfiles | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
  

Patch

diff --git a/tools/checkrootfiles b/tools/checkrootfiles
index ab27c594b..a2712808b 100755
--- a/tools/checkrootfiles
+++ b/tools/checkrootfiles
@@ -2,7 +2,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2022  IPFire Team  info@ipfire.org                       #
+# Copyright (C) 2007-2023  IPFire Team  info@ipfire.org                       #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -53,3 +53,11 @@  if [ "${?}" == "0" ]; then
     --exclude-dir oldcore --exclude-dir aarch64
 	echo "Replace by xxxMACHINExxx !"
 fi
+
+grep -r '/riscv64' ./config/rootfiles/ --exclude gcc --exclude rust-libc --exclude gdb --exclude liburcu --exclude go --exclude-dir oldcore --exclude-dir riscv64 >/dev/null 2>&1
+if [ "${?}" == "0" ]; then
+	echo "Error! '/riscv64' in rootfiles files found!"
+	grep -r '/riscv64' ./config/rootfiles/ --exclude gcc --exclude rust-libc --exclude go \
+    --exclude-dir oldcore --exclude-dir riscv64
+	echo "Replace by xxxMACHINExxx !"
+fi