aboutsummaryrefslogtreecommitdiff
path: root/scripts/ld-version.sh
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-02-11 14:25:43 +0000
committerRalf Baechle <ralf@linux-mips.org>2016-05-13 14:02:05 +0200
commit0d61ed17dd30fc31533ce07750d03bdb34fb6d7a (patch)
tree9ba579ee8f393c859372a9ce29809b9a061e81d1 /scripts/ld-version.sh
parent69ca2b81c2f63eb48eccdf70a4433641c5041527 (diff)
downloadleg-kernel-0d61ed17dd30fc31533ce07750d03bdb34fb6d7a.tar.gz
ld-version: Drop the 4th and 5th version components
... making upstream development binutils snapshots work as expected, e.g.: $ mips64el-linux-ld --version GNU ld (GNU Binutils) 2.20.1.20100303 [...] $ Signed-off-by: Maciej W. Rozycki <macro@imgtec.com> Acked-by: Michal Marek <mmarek@suse.cz> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: James Hogan <james.hogan@imgtec.com> Cc: linux-kbuild@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/12537/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'scripts/ld-version.sh')
-rwxr-xr-xscripts/ld-version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh
index 7bfe9fa1c8dc..d135882e2c40 100755
--- a/scripts/ld-version.sh
+++ b/scripts/ld-version.sh
@@ -5,6 +5,6 @@
gsub(".*version ", "");
gsub("-.*", "");
split($1,a, ".");
- print a[1]*100000000 + a[2]*1000000 + a[3]*10000 + a[4]*100 + a[5];
+ print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
exit
}