diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-02-27 09:52:32 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-03-08 12:17:10 +0100 |
commit | 819a47d24b61b5e2d660d19c8798f0f9b4498b73 (patch) | |
tree | 80fd8c18559b1c433f3f85cae019c131fcf140ba /arch/arm64/tools/Makefile | |
parent | arm64: drop unused includes of <linux/personality.h> (diff) | |
download | linux-819a47d24b61b5e2d660d19c8798f0f9b4498b73.tar.xz linux-819a47d24b61b5e2d660d19c8798f0f9b4498b73.zip |
arm64: clean up tools Makefile
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>
Diffstat (limited to 'arch/arm64/tools/Makefile')
-rw-r--r-- | arch/arm64/tools/Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm64/tools/Makefile b/arch/arm64/tools/Makefile index 932b4fe5c768..cf1307188150 100644 --- a/arch/arm64/tools/Makefile +++ b/arch/arm64/tools/Makefile @@ -5,18 +5,14 @@ kapi := $(gen)/asm kapi-hdrs-y := $(kapi)/cpucaps.h -targets += $(addprefix ../../../,$(gen-y) $(kapi-hdrs-y)) +targets += $(addprefix ../../../, $(kapi-hdrs-y)) PHONY += kapi -kapi: $(kapi-hdrs-y) $(gen-y) - -# Create output directory if not already present -_dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') +kapi: $(kapi-hdrs-y) quiet_cmd_gen_cpucaps = GEN $@ - cmd_gen_cpucaps = mkdir -p $(dir $@) && \ - $(AWK) -f $(filter-out $(PHONY),$^) > $@ + 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) |