Skip to content

Commit ad05f67

Browse files
masahir0yRussell King (Oracle)
authored and
Russell King (Oracle)
committed
ARM: 9086/1: syscalls: use pattern rules to generate syscall headers
Use pattern rules to unify similar build rules between OABI and EABI. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent b34b982 commit ad05f67

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

arch/arm/tools/Makefile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,20 @@ $(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE
3939
$(call if_changed,gen_mach)
4040

4141
quiet_cmd_syshdr = SYSHDR $@
42-
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --abis $(abis) \
42+
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --abis common,$* \
4343
--offset __NR_SYSCALL_BASE $< $@
4444

4545
quiet_cmd_systbl = SYSTBL $@
46-
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
46+
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis common,$* $< $@
4747

4848
quiet_cmd_sysnr = SYSNR $@
4949
cmd_sysnr = $(CONFIG_SHELL) $(sysnr) $< $@
5050

51-
$(uapi)/unistd-oabi.h: abis := common,oabi
52-
$(uapi)/unistd-oabi.h: $(syscall) $(syshdr) FORCE
53-
$(call if_changed,syshdr)
54-
55-
$(uapi)/unistd-eabi.h: abis := common,eabi
56-
$(uapi)/unistd-eabi.h: $(syscall) $(syshdr) FORCE
51+
$(uapi)/unistd-%.h: $(syscall) $(syshdr) FORCE
5752
$(call if_changed,syshdr)
5853

5954
$(kapi)/unistd-nr.h: $(syscall) $(sysnr) FORCE
6055
$(call if_changed,sysnr)
6156

62-
$(gen)/calls-oabi.S: abis := common,oabi
63-
$(gen)/calls-oabi.S: $(syscall) $(systbl) FORCE
64-
$(call if_changed,systbl)
65-
66-
$(gen)/calls-eabi.S: abis := common,eabi
67-
$(gen)/calls-eabi.S: $(syscall) $(systbl) FORCE
57+
$(gen)/calls-%.S: $(syscall) $(systbl) FORCE
6858
$(call if_changed,systbl)

0 commit comments

Comments
 (0)