Skip to content

Commit 6073882

Browse files
masahir0yRussell King (Oracle)
authored and
Russell King (Oracle)
committed
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>
1 parent 4716e2e commit 6073882

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/tools/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ _dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') \
3333
$(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)')
3434

3535
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) > $@
3837

3938
$(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE
4039
$(call if_changed,gen_mach)

0 commit comments

Comments
 (0)