Skip to content

Commit e2a86a2

Browse files
committed
parisc: 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>
1 parent c1ba79e commit e2a86a2

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

arch/parisc/kernel/syscalls/Makefile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,15 @@ syshdr := $(srctree)/scripts/syscallhdr.sh
1010
systbl := $(srctree)/scripts/syscalltbl.sh
1111

1212
quiet_cmd_syshdr = SYSHDR $@
13-
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis $(abis) $< $@
13+
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis common,$* $< $@
1414

1515
quiet_cmd_systbl = SYSTBL $@
16-
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
16+
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis common,$* $< $@
1717

18-
$(uapi)/unistd_32.h: abis := common,32
19-
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
18+
$(uapi)/unistd_%.h: $(syscall) $(syshdr) FORCE
2019
$(call if_changed,syshdr)
2120

22-
$(uapi)/unistd_64.h: abis := common,64
23-
$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
24-
$(call if_changed,syshdr)
25-
26-
$(kapi)/syscall_table_32.h: abis := common,32
27-
$(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
28-
$(call if_changed,systbl)
29-
30-
$(kapi)/syscall_table_64.h: abis := common,64
31-
$(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE
21+
$(kapi)/syscall_table_%.h: $(syscall) $(systbl) FORCE
3222
$(call if_changed,systbl)
3323

3424
uapisyshdr-y += unistd_32.h unistd_64.h

0 commit comments

Comments
 (0)