mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
sparc: syscalls: use pattern rules to generate syscall headers
Use pattern rules to unify similar build rules between 32-bit and 64-bit. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
e2a86a29ea
commit
a0e781a2a3
@ -10,25 +10,15 @@ syshdr := $(srctree)/scripts/syscallhdr.sh
|
|||||||
systbl := $(srctree)/scripts/syscalltbl.sh
|
systbl := $(srctree)/scripts/syscalltbl.sh
|
||||||
|
|
||||||
quiet_cmd_syshdr = SYSHDR $@
|
quiet_cmd_syshdr = SYSHDR $@
|
||||||
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis $(abis) $< $@
|
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis common,$* $< $@
|
||||||
|
|
||||||
quiet_cmd_systbl = SYSTBL $@
|
quiet_cmd_systbl = SYSTBL $@
|
||||||
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
|
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis common,$* $< $@
|
||||||
|
|
||||||
$(uapi)/unistd_32.h: abis := common,32
|
$(uapi)/unistd_%.h: $(syscall) $(syshdr) FORCE
|
||||||
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
|
|
||||||
$(call if_changed,syshdr)
|
$(call if_changed,syshdr)
|
||||||
|
|
||||||
$(uapi)/unistd_64.h: abis := common,64
|
$(kapi)/syscall_table_%.h: $(syscall) $(systbl) FORCE
|
||||||
$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
|
|
||||||
$(call if_changed,syshdr)
|
|
||||||
|
|
||||||
$(kapi)/syscall_table_32.h: abis := common,32
|
|
||||||
$(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
|
|
||||||
$(call if_changed,systbl)
|
|
||||||
|
|
||||||
$(kapi)/syscall_table_64.h: abis := common,64
|
|
||||||
$(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE
|
|
||||||
$(call if_changed,systbl)
|
$(call if_changed,systbl)
|
||||||
|
|
||||||
uapisyshdr-y += unistd_32.h unistd_64.h
|
uapisyshdr-y += unistd_32.h unistd_64.h
|
||||||
|
Loading…
Reference in New Issue
Block a user