mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
For clarity it would be nice to factor cpucap manipulation out of <asm/cpufeature.h>, and the obvious place would be <asm/cpucap.h>, but this will clash somewhat with <generated/asm/cpucaps.h>. Rename <generated/asm/cpucaps.h> to <generated/asm/cpucap-defs.h>, matching what we do for <generated/asm/sysreg-defs.h>, and introduce a new <asm/cpucaps.h> which includes the generated header. Subsequent patches will fill out <asm/cpucaps.h>. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Mark Brown <[email protected]> Cc: Suzuki K Poulose <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
25 lines
660 B
Makefile
25 lines
660 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
gen := arch/$(ARCH)/include/generated
|
|
kapi := $(gen)/asm
|
|
|
|
kapi-hdrs-y := $(kapi)/cpucap-defs.h $(kapi)/sysreg-defs.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) > $@
|
|
|
|
quiet_cmd_gen_sysreg = GEN $@
|
|
cmd_gen_sysreg = mkdir -p $(dir $@); $(AWK) -f $(real-prereqs) > $@
|
|
|
|
$(kapi)/cpucap-defs.h: $(src)/gen-cpucaps.awk $(src)/cpucaps FORCE
|
|
$(call if_changed,gen_cpucaps)
|
|
|
|
$(kapi)/sysreg-defs.h: $(src)/gen-sysreg.awk $(src)/sysreg FORCE
|
|
$(call if_changed,gen_sysreg)
|