1 # SPDX-License-Identifier: GPL-2.0 2 3 gen := arch/$(ARCH)/include/generated 4 kapi := $(gen)/asm 5 6 kapisyshdr-y := cpucap-defs.h sysreg-defs.h 7 8 kapi-hdrs-y := $(addprefix $(kapi)/, $(kapisyshdr-y)) 9 10 targets += $(addprefix ../../../, $(kapi-hdrs-y)) 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 $@); $(AWK) -f $(real-prereqs) > $@ 20 21 quiet_cmd_gen_sysreg = GEN $@ 22 cmd_gen_sysreg = mkdir -p $(dir $@); $(AWK) -f $(real-prereqs) > $@ 23 24 $(kapi)/cpucap-defs.h: $(src)/gen-cpucaps.awk $(src)/cpucaps FORCE 25 $(call if_changed,gen_cpucaps) 26 27 $(kapi)/sysreg-defs.h: $(src)/gen-sysreg.awk $(src)/sysreg FORCE 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.