treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / alpha / kernel / syscalls / Makefile
blob659faefdcb1da5f0ffbafc40fd598dd98d9a5fde
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 $(uapi)/unistd_32.h: $(syscall) $(syshdr)
25 $(call if_changed,syshdr)
27 $(kapi)/syscall_table.h: $(syscall) $(systbl)
28 $(call if_changed,systbl)
30 uapisyshdr-y += unistd_32.h
31 kapisyshdr-y += syscall_table.h
33 targets += $(uapisyshdr-y) $(kapisyshdr-y)
35 PHONY += all
36 all: $(addprefix $(uapi)/,$(uapisyshdr-y))
37 all: $(addprefix $(kapi)/,$(kapisyshdr-y))