Makefile (14b3c9d24a7a5c274a9df27d245516f466d3bc5f) Makefile (672bff581e19d5d7bef993f910ed385c4054cbbc)
1# SPDX-License-Identifier: GPL-2.0
2kapi := arch/$(SRCARCH)/include/generated/asm
3uapi := arch/$(SRCARCH)/include/generated/uapi/asm
4
5_dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
6 $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')
7
8syscall := $(src)/syscall.tbl
1# SPDX-License-Identifier: GPL-2.0
2kapi := arch/$(SRCARCH)/include/generated/asm
3uapi := arch/$(SRCARCH)/include/generated/uapi/asm
4
5_dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
6 $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')
7
8syscall := $(src)/syscall.tbl
9syshdr := $(srctree)/$(src)/syscallhdr.sh
9syshdr := $(srctree)/scripts/syscallhdr.sh
10systbl := $(srctree)/scripts/syscalltbl.sh
11
12quiet_cmd_syshdr = SYSHDR $@
10systbl := $(srctree)/scripts/syscalltbl.sh
11
12quiet_cmd_syshdr = SYSHDR $@
13 cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
14 '$(syshdr_abis_$(basetarget))' \
15 '$(syshdr_pfx_$(basetarget))' \
16 '$(syshdr_offset_$(basetarget))'
13 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr --abis $(abis) $< $@
17
18quiet_cmd_systbl = SYSTBL $@
19 cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
20
14
15quiet_cmd_systbl = SYSTBL $@
16 cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
17
21syshdr_abis_unistd_32 := common,nospu,32
18$(uapi)/unistd_32.h: abis := common,nospu,32
22$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
23 $(call if_changed,syshdr)
24
19$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
20 $(call if_changed,syshdr)
21
25syshdr_abis_unistd_64 := common,nospu,64
22$(uapi)/unistd_64.h: abis := common,nospu,64
26$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
27 $(call if_changed,syshdr)
28
29$(kapi)/syscall_table_32.h: abis := common,nospu,32
30$(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
31 $(call if_changed,systbl)
32
33$(kapi)/syscall_table_64.h: abis := common,nospu,64

--- 19 unchanged lines hidden ---
23$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
24 $(call if_changed,syshdr)
25
26$(kapi)/syscall_table_32.h: abis := common,nospu,32
27$(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
28 $(call if_changed,systbl)
29
30$(kapi)/syscall_table_64.h: abis := common,nospu,64

--- 19 unchanged lines hidden ---