You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
601 B
25 lines
601 B
9 years ago
|
From: Felix Fietkau <nbd@nbd.name>
|
||
9 years ago
|
Date: Mon, 18 Jan 2016 12:27:49 +0100
|
||
|
Subject: [PATCH] Kbuild: don't hardcode path to awk in scripts/ld-version.sh
|
||
|
|
||
|
On some systems /usr/bin/awk does not exist, or is broken. Find it via
|
||
|
$PATH instead.
|
||
|
|
||
9 years ago
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||
9 years ago
|
---
|
||
|
|
||
|
--- a/scripts/ld-version.sh
|
||
|
+++ b/scripts/ld-version.sh
|
||
9 years ago
|
@@ -1,8 +1,10 @@
|
||
9 years ago
|
-#!/usr/bin/awk -f
|
||
9 years ago
|
+#!/bin/sh
|
||
9 years ago
|
# extract linker version number from stdin and turn into single number
|
||
9 years ago
|
+exec awk '
|
||
9 years ago
|
{
|
||
9 years ago
|
gsub(".*\\)", "");
|
||
9 years ago
|
split($1,a, ".");
|
||
|
print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5];
|
||
|
exit
|
||
|
}
|
||
|
+'
|