Linux 5.6.13
[linux/fpc-iii.git] / arch / parisc / kernel / syscalls / Makefile
blobc22a21c39f308429ccaaa7d3b1d29dc23010a1fb
1 # SPDX-License-Identifier: GPL-2.0
2 kapi := arch/$(SRCARCH)/include/generated/asm
3 uapi := arch/$(SRCARCH)/include/generated/uapi/asm
5 _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
6 $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')
8 syscall := $(srctree)/$(src)/syscall.tbl
9 syshdr := $(srctree)/$(src)/syscallhdr.sh
10 systbl := $(srctree)/$(src)/syscalltbl.sh
12 quiet_cmd_syshdr = SYSHDR $@
13 cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
14 '$(syshdr_abis_$(basetarget))' \
15 '$(syshdr_pfx_$(basetarget))' \
16 '$(syshdr_offset_$(basetarget))'
18 quiet_cmd_systbl = SYSTBL $@
19 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \
20 '$(systbl_abis_$(basetarget))' \
21 '$(systbl_abi_$(basetarget))' \
22 '$(systbl_offset_$(basetarget))'
24 syshdr_abis_unistd_32 := common,32
25 $(uapi)/unistd_32.h: $(syscall) $(syshdr)
26 $(call if_changed,syshdr)
28 syshdr_abis_unistd_64 := common,64
29 $(uapi)/unistd_64.h: $(syscall) $(syshdr)
30 $(call if_changed,syshdr)
32 systbl_abis_syscall_table_32 := common,32
33 $(kapi)/syscall_table_32.h: $(syscall) $(systbl)
34 $(call if_changed,systbl)
36 systbl_abis_syscall_table_64 := common,64
37 $(kapi)/syscall_table_64.h: $(syscall) $(systbl)
38 $(call if_changed,systbl)
40 systbl_abis_syscall_table_c32 := common,32
41 systbl_abi_syscall_table_c32 := c32
42 $(kapi)/syscall_table_c32.h: $(syscall) $(systbl)
43 $(call if_changed,systbl)
45 uapisyshdr-y += unistd_32.h unistd_64.h
46 kapisyshdr-y += syscall_table_32.h \
47 syscall_table_64.h \
48 syscall_table_c32.h
50 targets += $(uapisyshdr-y) $(kapisyshdr-y)
52 PHONY += all
53 all: $(addprefix $(uapi)/,$(uapisyshdr-y))
54 all: $(addprefix $(kapi)/,$(kapisyshdr-y))