MIPS: fix duplicated slashes for Platform file path
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 9 Nov 2021 15:01:46 +0000 (00:01 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:17:14 +0000 (19:17 +0100)
commit70895879357f3ec34e2ab2d278fcd8d8d36ad01f
treeb99bc4a55993533cf6236c1361430bc3a2d6bf34
parent8301503a728a5f578b472f82f1fa773885b6cd0e
MIPS: fix duplicated slashes for Platform file path

commit cca2aac8acf470b01066f559acd7146fc4c32ae8 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>
Cc: Jason Self <jason@bluehome.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/Kbuild.platforms