mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
484de08518
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 <mark.rutland@arm.com> Cc: Marc Zyngier <maz@kernel.org> Cc: Mark Brown <broonie@kernel.org> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: Will Deacon <will@kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
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)
|