syscallnr.sh (498495dba268b20e8eadd7fe93c140c68b6cc9d2) | syscallnr.sh (b34b98204ca44f6a0fdd5edd51d332f7d6c581fd) |
---|---|
1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3in="$1" 4out="$2" | 1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3in="$1" 4out="$2" |
5my_abis=`echo "($3)" | tr ',' '|'` | |
6align=1 7 8fileguard=_ASM_ARM_`basename "$out" | sed \ 9 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 10 -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 11 | 5align=1 6 7fileguard=_ASM_ARM_`basename "$out" | sed \ 8 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 9 -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 10 |
12grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | tail -n1 | ( | 11grep -E "^[0-9A-Fa-fXx]+[[:space:]]+" "$in" | sort -n | tail -n1 | ( |
13 echo "#ifndef ${fileguard} 14#define ${fileguard} 1 15 16/* 17 * This needs to be greater than __NR_last_syscall+1 in order to account 18 * for the padding in the syscall table. 19 */ 20" --- 14 unchanged lines hidden --- | 12 echo "#ifndef ${fileguard} 13#define ${fileguard} 1 14 15/* 16 * This needs to be greater than __NR_last_syscall+1 in order to account 17 * for the padding in the syscall table. 18 */ 19" --- 14 unchanged lines hidden --- |