ARM: 9084/1: simplify the build rule of mach-types.h
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 28 May 2021 03:52:09 +0000 (04:52 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 7 Jun 2021 11:56:21 +0000 (12:56 +0100)
commit6073882cc1a8a0bcff840d6754f2f8205ba42342
tree12345802ad13c9c0739bfa746586bd8165bc04c5
parent4716e2e34a22a8ca840ded659893666a75b25057
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>
arch/arm/tools/Makefile