]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/arm/tools/syscalltbl.sh
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / arm / tools / syscalltbl.sh
CommitLineData
96a8fae0 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
96a8fae0
RK
3in="$1"
4out="$2"
5my_abis=`echo "($3)" | tr ',' '|'`
6
7grep -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
12 fi
13
14 if [ -n "$entry" ]; then
15 if [ -z "$compat" ]; then
16 echo "NATIVE($nr, $entry)"
17 else
18 echo "COMPAT($nr, $entry, $compat)"
19 fi
20 fi
21 done
22) > "$out"