]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
checkrootfiles: add riscv64 checks
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 28 Feb 2023 18:55:16 +0000 (19:55 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 4 Mar 2023 14:01:43 +0000 (14:01 +0000)
tools/checkrootfiles

index ab27c594ba3c2a7d283d8253c0fa16e2a7db5ff5..a2712808b2891cb20ceb298c58256bcedfc74c60 100755 (executable)
@@ -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