1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 !! 2 hostprogs := elf-entry 3 gen := arch/$(ARCH)/include/generated !! 3 PHONY += elf-entry 4 kapi := $(gen)/asm !! 4 elf-entry: $(obj)/elf-entry 5 !! 5 @: 6 kapisyshdr-y := cpucap-defs.h sysreg-defs.h !! 6 7 !! 7 hostprogs += loongson3-llsc-check 8 kapi-hdrs-y := $(addprefix $(kapi)/, $(kapisys !! 8 PHONY += loongson3-llsc-check 9 !! 9 loongson3-llsc-check: $(obj)/loongson3-llsc-check 10 targets += $(addprefix ../../../, $(kapi-hdrs- !! 10 @: 11 << 12 PHONY += kapi << 13 << 14 all: $(syscall64) kapi << 15 << 16 kapi: $(kapi-hdrs-y) << 17 << 18 quiet_cmd_gen_cpucaps = GEN $@ << 19 cmd_gen_cpucaps = mkdir -p $(dir $@); $( << 20 << 21 quiet_cmd_gen_sysreg = GEN $@ << 22 cmd_gen_sysreg = mkdir -p $(dir $@); $(A << 23 << 24 $(kapi)/cpucap-defs.h: $(src)/gen-cpucaps.awk << 25 $(call if_changed,gen_cpucaps) << 26 << 27 $(kapi)/sysreg-defs.h: $(src)/gen-sysreg.awk $ << 28 $(call if_changed,gen_sysreg) <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.