blob: f2be0ff9a738aca75c014c80b7535833d1eeb1a1 [file] [log] [blame]
Andi Kleenccbef162014-02-08 09:01:13 +01001#!/usr/bin/awk -f
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01002# SPDX-License-Identifier: GPL-2.0
Andi Kleenccbef162014-02-08 09:01:13 +01003# extract linker version number from stdin and turn into single number
4 {
James Hogan4b7b1ef2016-03-08 16:47:53 +00005 gsub(".*\\)", "");
Michael S. Tsirkin80830132016-01-07 19:55:24 +02006 gsub(".*version ", "");
7 gsub("-.*", "");
Andi Kleenccbef162014-02-08 09:01:13 +01008 split($1,a, ".");
Maciej W. Rozycki0d61ed172016-02-11 14:25:43 +00009 print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
Andi Kleenccbef162014-02-08 09:01:13 +010010 exit
11 }