ls --version | scripts/ld-version.sh
fails with
awk: scripts/ld-version.sh:
line 4: regular expression compile failed (missing '(')
.*)
So let's refresh the script with the current Linux kernel
version.
Signed-off-by: Heinrich Schuchardt
---
scripts/ld-version.sh | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh
index 198580d245..d135882e2c 100755
--- a/scripts/ld-version.sh
+++ b/scripts/ld-version.sh
@@ -1,8 +1,10 @@
#!/usr/bin/awk -f
# extract linker version number from stdin and turn into single number
{
- gsub(".*)", "");
+ gsub(".*\\)", "");
+ gsub(".*version ", "");
+ gsub("-.*", "");
split($1,a, ".");
- print a[1]*1000 + a[2]*10 + a[3]*1 + a[4]*100 + a[5];
+ print a[1]*1 + a[2]*100 + a[3]*1;
exit
}
--
2.14.2
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot