WIP FPC-III support
[linux/fpc-iii.git] / arch / arm / tools / syscalltbl.sh
blobae7e93cfbfd3bf5a70685e0b074c72f8cc5e12c4
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 in="$1"
4 out="$2"
5 my_abis=`echo "($3)" | tr ',' '|'`
7 grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
8 while read nr abi name entry compat; do
9 if [ "$abi" = "eabi" -a -n "$compat" ]; then
10 echo "$in: error: a compat entry for an EABI syscall ($name) makes no sense" >&2
11 exit 1
14 if [ -n "$entry" ]; then
15 if [ -z "$compat" ]; then
16 echo "NATIVE($nr, $entry)"
17 else
18 echo "COMPAT($nr, $entry, $compat)"
21 done
22 ) > "$out"