Skip to content

Commit adf2740

Browse files
masahir0yhdeller
authored andcommitted
parisc: syscalls: switch to generic syscallhdr.sh
Many architectures duplicate similar shell scripts. This commit converts parisc to use scripts/syscallhdr.sh. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent df86ddb commit adf2740

File tree

2 files changed

+4
-43
lines changed

2 files changed

+4
-43
lines changed

arch/parisc/kernel/syscalls/Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
66
$(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')
77

88
syscall := $(src)/syscall.tbl
9-
syshdr := $(srctree)/$(src)/syscallhdr.sh
9+
syshdr := $(srctree)/scripts/syscallhdr.sh
1010
systbl := $(srctree)/scripts/syscalltbl.sh
1111

1212
quiet_cmd_syshdr = SYSHDR $@
13-
cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
14-
'$(syshdr_abis_$(basetarget))' \
15-
'$(syshdr_pfx_$(basetarget))' \
16-
'$(syshdr_offset_$(basetarget))'
13+
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis $(abis) $< $@
1714

1815
quiet_cmd_systbl = SYSTBL $@
1916
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
2017

21-
syshdr_abis_unistd_32 := common,32
18+
$(uapi)/unistd_32.h: abis := common,32
2219
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
2320
$(call if_changed,syshdr)
2421

25-
syshdr_abis_unistd_64 := common,64
22+
$(uapi)/unistd_64.h: abis := common,64
2623
$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
2724
$(call if_changed,syshdr)
2825

arch/parisc/kernel/syscalls/syscallhdr.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)