MIPS: fix duplicated slashes for Platform file path

commit cca2aac8ac upstream.

platform-y accumulates platform names with a slash appended.
The current $(patsubst ...) ends up with doubling slashes.

GNU Make still include Platform files, but in case of an error,
a clumsy file path is displayed:

  arch/mips/loongson2ef//Platform:36: *** only binutils >= 2.20.2 have needed option -mfix-loongson2f-nop.  Stop.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Jason Self <jason@bluehome.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Masahiro Yamada
2021-11-10 00:01:46 +09:00
committed by Greg Kroah-Hartman
parent 1eed13f0ab
commit 70eeeb5aa0

View File

@@ -254,7 +254,9 @@ endif
# #
# Board-dependent options and extra files # Board-dependent options and extra files
# #
ifdef need-compiler
include arch/mips/Kbuild.platforms include arch/mips/Kbuild.platforms
endif
ifdef CONFIG_PHYSICAL_START ifdef CONFIG_PHYSICAL_START
load-y = $(CONFIG_PHYSICAL_START) load-y = $(CONFIG_PHYSICAL_START)