819a47d24b
Remove unused gen-y. Remove redundant $(shell ...) because 'mkdir' is done in cmd_gen_cpucaps. Replace $(filter-out $(PHONY), $^) with the $(real-prereqs) shorthand. The '&&' in cmd_gen_cpucaps should be replaced with ';' because it is run under 'set -e' environment. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Link: https://lore.kernel.org/r/20220227085232.206529-1-masahiroy@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
19 lines
424 B
Makefile
19 lines
424 B
Makefile
# 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)
|