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 --- 7 unchanged lines hidden (view full) --- 16 '$(syshdr_offset_$(basetarget))' 17 18quiet_cmd_systbl = SYSTBL $@ 19 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \ 20 '$(systbl_abis_$(basetarget))' \ 21 '$(systbl_abi_$(basetarget))' \ 22 '$(systbl_offset_$(basetarget))' 23 | 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 --- 7 unchanged lines hidden (view full) --- 16 '$(syshdr_offset_$(basetarget))' 17 18quiet_cmd_systbl = SYSTBL $@ 19 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \ 20 '$(systbl_abis_$(basetarget))' \ 21 '$(systbl_abi_$(basetarget))' \ 22 '$(systbl_offset_$(basetarget))' 23 |
24$(uapi)/unistd_32.h: $(syscall) $(syshdr) | 24$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE |
25 $(call if_changed,syshdr) 26 | 25 $(call if_changed,syshdr) 26 |
27$(kapi)/syscall_table.h: $(syscall) $(systbl) | 27$(kapi)/syscall_table.h: $(syscall) $(systbl) FORCE |
28 $(call if_changed,systbl) 29 30uapisyshdr-y += unistd_32.h 31kapisyshdr-y += syscall_table.h 32 | 28 $(call if_changed,systbl) 29 30uapisyshdr-y += unistd_32.h 31kapisyshdr-y += syscall_table.h 32 |
33targets += $(uapisyshdr-y) $(kapisyshdr-y) | 33uapisyshdr-y := $(addprefix $(uapi)/, $(uapisyshdr-y)) 34kapisyshdr-y := $(addprefix $(kapi)/, $(kapisyshdr-y)) 35targets += $(addprefix ../../../../, $(uapisyshdr-y) $(kapisyshdr-y)) |
34 35PHONY += all | 36 37PHONY += all |
36all: $(addprefix $(uapi)/,$(uapisyshdr-y)) 37all: $(addprefix $(kapi)/,$(kapisyshdr-y)) | 38all: $(uapisyshdr-y) $(kapisyshdr-y) |
38 @: | 39 @: |