2 # SPDX-License-Identifier: GPL-2.0
6 my_abis
=`echo "($3)" | tr ',' '|'`
9 fileguard
=_UAPI_ASM_MIPS_
`basename "$out" | sed \
10 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
11 -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'`
12 grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" |
sort -n |
(
13 printf "#ifndef %s\n" "${fileguard}"
14 printf "#define %s\n" "${fileguard}"
18 while read nr abi name entry compat
; do
22 printf "#define __NR_%s_Linux_syscalls\t%s\n" "${prefix}" "${nxt}"
24 printf "#endif /* %s */" "${fileguard}"