Makefile (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) | Makefile (865fa29f7dd1b6af8498fe08f19b4028c1c8a153) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2out := arch/$(SRCARCH)/include/generated/asm 3uapi := arch/$(SRCARCH)/include/generated/uapi/asm 4 5# Create output directory if not already present 6_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') \ 7 $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') 8 --- 7 unchanged lines hidden (view full) --- 16 cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \ 17 '$(syshdr_abi_$(basetarget))' \ 18 '$(syshdr_pfx_$(basetarget))' \ 19 '$(syshdr_offset_$(basetarget))' 20quiet_cmd_systbl = SYSTBL $@ 21 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' $< $@ 22 23quiet_cmd_hypercalls = HYPERCALLS $@ | 1# SPDX-License-Identifier: GPL-2.0 2out := arch/$(SRCARCH)/include/generated/asm 3uapi := arch/$(SRCARCH)/include/generated/uapi/asm 4 5# Create output directory if not already present 6_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') \ 7 $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') 8 --- 7 unchanged lines hidden (view full) --- 16 cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \ 17 '$(syshdr_abi_$(basetarget))' \ 18 '$(syshdr_pfx_$(basetarget))' \ 19 '$(syshdr_offset_$(basetarget))' 20quiet_cmd_systbl = SYSTBL $@ 21 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' $< $@ 22 23quiet_cmd_hypercalls = HYPERCALLS $@ |
24 cmd_hypercalls = $(CONFIG_SHELL) '$<' $@ $(filter-out $<,$^) | 24 cmd_hypercalls = $(CONFIG_SHELL) '$<' $@ $(filter-out $<, $(real-prereqs)) |
25 26syshdr_abi_unistd_32 := i386 | 25 26syshdr_abi_unistd_32 := i386 |
27$(uapi)/unistd_32.h: $(syscall32) $(syshdr) | 27$(uapi)/unistd_32.h: $(syscall32) $(syshdr) FORCE |
28 $(call if_changed,syshdr) 29 30syshdr_abi_unistd_32_ia32 := i386 31syshdr_pfx_unistd_32_ia32 := ia32_ | 28 $(call if_changed,syshdr) 29 30syshdr_abi_unistd_32_ia32 := i386 31syshdr_pfx_unistd_32_ia32 := ia32_ |
32$(out)/unistd_32_ia32.h: $(syscall32) $(syshdr) | 32$(out)/unistd_32_ia32.h: $(syscall32) $(syshdr) FORCE |
33 $(call if_changed,syshdr) 34 35syshdr_abi_unistd_x32 := common,x32 36syshdr_offset_unistd_x32 := __X32_SYSCALL_BIT | 33 $(call if_changed,syshdr) 34 35syshdr_abi_unistd_x32 := common,x32 36syshdr_offset_unistd_x32 := __X32_SYSCALL_BIT |
37$(uapi)/unistd_x32.h: $(syscall64) $(syshdr) | 37$(uapi)/unistd_x32.h: $(syscall64) $(syshdr) FORCE |
38 $(call if_changed,syshdr) 39 40syshdr_abi_unistd_64 := common,64 | 38 $(call if_changed,syshdr) 39 40syshdr_abi_unistd_64 := common,64 |
41$(uapi)/unistd_64.h: $(syscall64) $(syshdr) | 41$(uapi)/unistd_64.h: $(syscall64) $(syshdr) FORCE |
42 $(call if_changed,syshdr) 43 44syshdr_abi_unistd_64_x32 := x32 45syshdr_pfx_unistd_64_x32 := x32_ | 42 $(call if_changed,syshdr) 43 44syshdr_abi_unistd_64_x32 := x32 45syshdr_pfx_unistd_64_x32 := x32_ |
46$(out)/unistd_64_x32.h: $(syscall64) $(syshdr) | 46$(out)/unistd_64_x32.h: $(syscall64) $(syshdr) FORCE |
47 $(call if_changed,syshdr) 48 | 47 $(call if_changed,syshdr) 48 |
49$(out)/syscalls_32.h: $(syscall32) $(systbl) | 49$(out)/syscalls_32.h: $(syscall32) $(systbl) FORCE |
50 $(call if_changed,systbl) | 50 $(call if_changed,systbl) |
51$(out)/syscalls_64.h: $(syscall64) $(systbl) | 51$(out)/syscalls_64.h: $(syscall64) $(systbl) FORCE |
52 $(call if_changed,systbl) 53 | 52 $(call if_changed,systbl) 53 |
54$(out)/xen-hypercalls.h: $(srctree)/scripts/xen-hypercalls.sh | 54$(out)/xen-hypercalls.h: $(srctree)/scripts/xen-hypercalls.sh FORCE |
55 $(call if_changed,hypercalls) 56 57$(out)/xen-hypercalls.h: $(srctree)/include/xen/interface/xen*.h 58 59uapisyshdr-y += unistd_32.h unistd_64.h unistd_x32.h 60syshdr-y += syscalls_32.h 61syshdr-$(CONFIG_X86_64) += unistd_32_ia32.h unistd_64_x32.h 62syshdr-$(CONFIG_X86_64) += syscalls_64.h 63syshdr-$(CONFIG_XEN) += xen-hypercalls.h 64 | 55 $(call if_changed,hypercalls) 56 57$(out)/xen-hypercalls.h: $(srctree)/include/xen/interface/xen*.h 58 59uapisyshdr-y += unistd_32.h unistd_64.h unistd_x32.h 60syshdr-y += syscalls_32.h 61syshdr-$(CONFIG_X86_64) += unistd_32_ia32.h unistd_64_x32.h 62syshdr-$(CONFIG_X86_64) += syscalls_64.h 63syshdr-$(CONFIG_XEN) += xen-hypercalls.h 64 |
65targets += $(uapisyshdr-y) $(syshdr-y) | 65uapisyshdr-y := $(addprefix $(uapi)/, $(uapisyshdr-y)) 66syshdr-y := $(addprefix $(out)/, $(syshdr-y)) 67targets += $(addprefix ../../../../, $(uapisyshdr-y) $(syshdr-y)) |
66 67PHONY += all | 68 69PHONY += all |
68all: $(addprefix $(uapi)/,$(uapisyshdr-y)) 69all: $(addprefix $(out)/,$(syshdr-y)) | 70all: $(uapisyshdr-y) $(syshdr-y) |
70 @: | 71 @: |