kbuild: do not use scripts/ld-version.sh for checking spatch version
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 12 Dec 2020 16:54:29 +0000 (01:54 +0900)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sat, 12 Dec 2020 17:31:29 +0000 (18:31 +0100)
commit33114c4359592d5c8a3d840eee9ff40039caf26f
tree4f2c666ee310afa206dac40dbb7a4acec01da4e5
parent2b076054e524a92e3a303de487dfb7cf85d8e149
kbuild: do not use scripts/ld-version.sh for checking spatch version

scripts/ld-version.sh was, as its file name implies, originally intended
for the GNU ld version, but is (ab)used for the spatch version too.

Use 'sort -CV' for the version comparison, then coccicheck does not need
to use scripts/ld-version.sh. Fix nsdeps as well.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccicheck
scripts/nsdeps