diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-05-28 04:52:09 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-06-07 12:56:21 +0100 |
commit | 6073882cc1a8a0bcff840d6754f2f8205ba42342 (patch) | |
tree | 12345802ad13c9c0739bfa746586bd8165bc04c5 /arch/arm/tools | |
parent | 4716e2e34a22a8ca840ded659893666a75b25057 (diff) |
ARM: 9084/1: simplify the build rule of mach-types.h
The directory of mach-types.h is created a couple of lines above:
_dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') \
The 'mkdir -p' command is redundant.
scripts/Kbuild.include defines real-prereqs as a shorthand for
$(filter-out $(PHONY),$^). Let's use it to simplify the code.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/tools')
-rw-r--r-- | arch/arm/tools/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile index 87de1f63f649..057639019059 100644 --- a/arch/arm/tools/Makefile +++ b/arch/arm/tools/Makefile @@ -33,8 +33,7 @@ _dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') \ $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') quiet_cmd_gen_mach = GEN $@ - cmd_gen_mach = mkdir -p $(dir $@) && \ - $(AWK) -f $(filter-out $(PHONY),$^) > $@ + cmd_gen_mach = $(AWK) -f $(real-prereqs) > $@ $(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE $(call if_changed,gen_mach) |