Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Masahiro Yamada and committed by
Russell King (Oracle)
6073882c 4716e2e3

+1 -2
+1 -2
arch/arm/tools/Makefile
··· 33 33 $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') 34 34 35 35 quiet_cmd_gen_mach = GEN $@ 36 - cmd_gen_mach = mkdir -p $(dir $@) && \ 37 - $(AWK) -f $(filter-out $(PHONY),$^) > $@ 36 + cmd_gen_mach = $(AWK) -f $(real-prereqs) > $@ 38 37 39 38 $(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE 40 39 $(call if_changed,gen_mach)