diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-08-25 06:22:40 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-12-20 09:40:33 -0500 |
commit | 6e5f6856427abe5418f535cb46c454ae8ea7f8e7 (patch) | |
tree | fdf36a314aec16b88ede6b02ca4dbfea6895331b /scripts | |
parent | 1121584f5db8a99a7ad94c6c5d62431b3187ad98 (diff) |
checksyscalls: Fix stand-alone usage
The usage help in the comments
- refers to the wrong script name,
- doesn't mention that $srctree must be set.
Hence correct the script name, and derive the source tree path from the script
path, so we no longer need to rely on $srctree being set by the caller.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checksyscalls.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh index 6bb42e72e0e5..3ab316e52313 100755 --- a/scripts/checksyscalls.sh +++ b/scripts/checksyscalls.sh | |||
@@ -6,7 +6,7 @@ | |||
6 | # and listed below so they are ignored. | 6 | # and listed below so they are ignored. |
7 | # | 7 | # |
8 | # Usage: | 8 | # Usage: |
9 | # syscallchk gcc gcc-options | 9 | # checksyscalls.sh gcc gcc-options |
10 | # | 10 | # |
11 | 11 | ||
12 | ignore_list() { | 12 | ignore_list() { |
@@ -204,5 +204,5 @@ sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\ | |||
204 | \#endif/p' $1 | 204 | \#endif/p' $1 |
205 | } | 205 | } |
206 | 206 | ||
207 | (ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \ | 207 | (ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \ |
208 | $* -E -x c - > /dev/null | 208 | $* -E -x c - > /dev/null |