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>
---
KernelVersion: v5.13-rc1
arch/arm/tools/Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
On Fri, May 28, 2021 at 5:52 AM Masahiro Yamada [off-list ref] wrote:
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>
Reviewed-by: Linus Walleij <redacted>
Can you put this into Russell's patch tracker or shall I sign
it off and put it there?
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
On Fri, May 28, 2021 at 5:24 PM Linus Walleij [off-list ref] wrote:
On Fri, May 28, 2021 at 5:52 AM Masahiro Yamada [off-list ref] wrote:
quoted
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>
Reviewed-by: Linus Walleij <redacted>
Can you put this into Russell's patch tracker or shall I sign
it off and put it there?