1 # SPDX-License-Identifier: GPL-2.0
3 gen := arch/$(ARCH)/include/generated
6 kapi-hdrs-y := $(kapi)/cpucaps.h $(kapi)/sysreg-defs.h
8 targets += $(addprefix ../../../, $(kapi-hdrs-y))
14 quiet_cmd_gen_cpucaps = GEN $@
15 cmd_gen_cpucaps = mkdir -p $(dir $@); $(AWK) -f $(real-prereqs) > $@
17 quiet_cmd_gen_sysreg = GEN $@
18 cmd_gen_sysreg = mkdir -p $(dir $@); $(AWK) -f $(real-prereqs) > $@
20 $(kapi)/cpucaps.h: $(src)/gen-cpucaps.awk $(src)/cpucaps FORCE
21 $(call if_changed,gen_cpucaps)
23 $(kapi)/sysreg-defs.h: $(src)/gen-sysreg.awk $(src)/sysreg FORCE
24 $(call if_changed,gen_sysreg)