Skip to content

Commit

Permalink
parisc: syscalls: switch to generic syscallhdr.sh
Browse files Browse the repository at this point in the history
Many architectures duplicate similar shell scripts.

This commit converts parisc to use scripts/syscallhdr.sh.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Masahiro Yamada authored and Helge Deller committed Apr 27, 2021
1 parent df86ddb commit adf2740
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 43 deletions.
11 changes: 4 additions & 7 deletions arch/parisc/kernel/syscalls/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
$(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')

syscall := $(src)/syscall.tbl
syshdr := $(srctree)/$(src)/syscallhdr.sh
syshdr := $(srctree)/scripts/syscallhdr.sh
systbl := $(srctree)/scripts/syscalltbl.sh

quiet_cmd_syshdr = SYSHDR $@
cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
'$(syshdr_abis_$(basetarget))' \
'$(syshdr_pfx_$(basetarget))' \
'$(syshdr_offset_$(basetarget))'
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis $(abis) $< $@

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

syshdr_abis_unistd_32 := common,32
$(uapi)/unistd_32.h: abis := common,32
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
$(call if_changed,syshdr)

syshdr_abis_unistd_64 := common,64
$(uapi)/unistd_64.h: abis := common,64
$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
$(call if_changed,syshdr)

Expand Down
36 changes: 0 additions & 36 deletions arch/parisc/kernel/syscalls/syscallhdr.sh

This file was deleted.

0 comments on commit adf2740

Please sign in to comment.