mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-04 20:32:27 -04:00
The s390 syscall.tbl format differs slightly from most others, and therefore requires an s390 specific system call table generation script. With compat support gone use the opportunity to switch to generic system call table generation. The abi for all 64 bit system calls is now common, since there is no need to specify if system call entry points are only for 64 bit anymore. Furthermore create the system call table in C instead of assembler code in order to get type checking for all system call functions contained within the table. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
33 lines
947 B
Makefile
33 lines
947 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
kapi := arch/$(SRCARCH)/include/generated/asm
|
|
uapi := arch/$(SRCARCH)/include/generated/uapi/asm
|
|
|
|
$(shell mkdir -p $(uapi) $(kapi))
|
|
|
|
syscall := $(src)/syscall.tbl
|
|
syshdr := $(srctree)/scripts/syscallhdr.sh
|
|
systbl := $(srctree)/scripts/syscalltbl.sh
|
|
|
|
quiet_cmd_syshdr = SYSHDR $@
|
|
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis common,$* $< $@
|
|
|
|
quiet_cmd_systbl = SYSTBL $@
|
|
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis common,$* $< $@
|
|
|
|
$(uapi)/unistd_%.h: $(syscall) $(syshdr) FORCE
|
|
$(call if_changed,syshdr)
|
|
|
|
$(kapi)/syscall_table.h: $(syscall) $(systbl) FORCE
|
|
$(call if_changed,systbl)
|
|
|
|
uapisyshdr-y += unistd_64.h
|
|
kapisyshdr-y += syscall_table.h
|
|
|
|
uapisyshdr-y := $(addprefix $(uapi)/, $(uapisyshdr-y))
|
|
kapisyshdr-y := $(addprefix $(kapi)/, $(kapisyshdr-y))
|
|
targets += $(addprefix ../../../../, $(uapisyshdr-y) $(kapisyshdr-y))
|
|
|
|
PHONY += all
|
|
all: $(uapisyshdr-y) $(kapisyshdr-y)
|
|
@:
|