From 76cb841cb886eef6b3bee341a2266c76578724ad Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:02:30 +0200 Subject: Adding upstream version 4.19.249. Signed-off-by: Daniel Baumann --- scripts/ld-version.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/ld-version.sh (limited to 'scripts/ld-version.sh') diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh new file mode 100755 index 000000000..f2be0ff9a --- /dev/null +++ b/scripts/ld-version.sh @@ -0,0 +1,11 @@ +#!/usr/bin/awk -f +# SPDX-License-Identifier: GPL-2.0 +# extract linker version number from stdin and turn into single number + { + gsub(".*\\)", ""); + gsub(".*version ", ""); + gsub("-.*", ""); + split($1,a, "."); + print a[1]*100000000 + a[2]*1000000 + a[3]*10000; + exit + } -- cgit v1.2.3