diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2016-01-24 04:14:40 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-01-24 04:14:40 +0100 |
commit | 07d17f09691e549fac0101333eebe0161a472b50 (patch) | |
tree | 86c172dffff9804d31a515bd04a108f9d775b777 /scripts/ld-version.sh | |
parent | MIPS: zboot: Add support for serial debug using the PROM (diff) | |
parent | MIPS: Fix macro typo (diff) | |
download | linux-07d17f09691e549fac0101333eebe0161a472b50.tar.xz linux-07d17f09691e549fac0101333eebe0161a472b50.zip |
Merge branch '4.4-fixes' into mips-for-linux-next
Diffstat (limited to 'scripts/ld-version.sh')
-rwxr-xr-x | scripts/ld-version.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh index 198580d245e0..d154f0877fd8 100755 --- a/scripts/ld-version.sh +++ b/scripts/ld-version.sh @@ -2,7 +2,9 @@ # extract linker version number from stdin and turn into single number { gsub(".*)", ""); + gsub(".*version ", ""); + gsub("-.*", ""); split($1,a, "."); - print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5]; + print a[1]*100000000 + a[2]*1000000 + a[3]*10000 + a[4]*100 + a[5]; exit } |