Makefile (597473720f4dc69749542bfcfed4a927a43d935e) | Makefile (865fa29f7dd1b6af8498fe08f19b4028c1c8a153) |
---|---|
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 := $(srctree)/$(src)/syscall.tbl --- 8 unchanged lines hidden (view full) --- 17 18quiet_cmd_systbl = SYSTBL $@ 19 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \ 20 '$(systbl_abis_$(basetarget))' \ 21 '$(systbl_abi_$(basetarget))' \ 22 '$(systbl_offset_$(basetarget))' 23 24syshdr_abis_unistd_32 := common,32 | 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 := $(srctree)/$(src)/syscall.tbl --- 8 unchanged lines hidden (view full) --- 17 18quiet_cmd_systbl = SYSTBL $@ 19 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \ 20 '$(systbl_abis_$(basetarget))' \ 21 '$(systbl_abi_$(basetarget))' \ 22 '$(systbl_offset_$(basetarget))' 23 24syshdr_abis_unistd_32 := common,32 |
25$(uapi)/unistd_32.h: $(syscall) $(syshdr) | 25$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE |
26 $(call if_changed,syshdr) 27 28syshdr_abis_unistd_64 := common,64 | 26 $(call if_changed,syshdr) 27 28syshdr_abis_unistd_64 := common,64 |
29$(uapi)/unistd_64.h: $(syscall) $(syshdr) | 29$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE |
30 $(call if_changed,syshdr) 31 32systbl_abis_syscall_table_32 := common,32 | 30 $(call if_changed,syshdr) 31 32systbl_abis_syscall_table_32 := common,32 |
33$(kapi)/syscall_table_32.h: $(syscall) $(systbl) | 33$(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE |
34 $(call if_changed,systbl) 35 36systbl_abis_syscall_table_64 := common,64 | 34 $(call if_changed,systbl) 35 36systbl_abis_syscall_table_64 := common,64 |
37$(kapi)/syscall_table_64.h: $(syscall) $(systbl) | 37$(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE |
38 $(call if_changed,systbl) 39 40systbl_abis_syscall_table_c32 := common,32 41systbl_abi_syscall_table_c32 := c32 | 38 $(call if_changed,systbl) 39 40systbl_abis_syscall_table_c32 := common,32 41systbl_abi_syscall_table_c32 := c32 |
42$(kapi)/syscall_table_c32.h: $(syscall) $(systbl) | 42$(kapi)/syscall_table_c32.h: $(syscall) $(systbl) FORCE |
43 $(call if_changed,systbl) 44 45uapisyshdr-y += unistd_32.h unistd_64.h 46kapisyshdr-y += syscall_table_32.h \ 47 syscall_table_64.h \ 48 syscall_table_c32.h 49 | 43 $(call if_changed,systbl) 44 45uapisyshdr-y += unistd_32.h unistd_64.h 46kapisyshdr-y += syscall_table_32.h \ 47 syscall_table_64.h \ 48 syscall_table_c32.h 49 |
50targets += $(uapisyshdr-y) $(kapisyshdr-y) | 50uapisyshdr-y := $(addprefix $(uapi)/, $(uapisyshdr-y)) 51kapisyshdr-y := $(addprefix $(kapi)/, $(kapisyshdr-y)) 52targets += $(addprefix ../../../../, $(uapisyshdr-y) $(kapisyshdr-y)) |
51 52PHONY += all | 53 54PHONY += all |
53all: $(addprefix $(uapi)/,$(uapisyshdr-y)) 54all: $(addprefix $(kapi)/,$(kapisyshdr-y)) | 55all: $(uapisyshdr-y) $(kapisyshdr-y) |
55 @: | 56 @: |