# SPDX-License-Identifier: GPL-2.0 | |
gen := arch/$(ARCH)/include/generated | |
kapi := $(gen)/asm | |
kapi-hdrs-y := $(kapi)/cpucaps.h | |
targets += $(addprefix ../../../, $(kapi-hdrs-y)) | |
PHONY += kapi | |
kapi: $(kapi-hdrs-y) | |
quiet_cmd_gen_cpucaps = GEN $@ | |
cmd_gen_cpucaps = mkdir -p $(dir $@); $(AWK) -f $(real-prereqs) > $@ | |
$(kapi)/cpucaps.h: $(src)/gen-cpucaps.awk $(src)/cpucaps FORCE | |
$(call if_changed,gen_cpucaps) |