kernel: add linux 4.9 support
[openwrt/staging/yousong.git] / target / linux / generic / patches-4.9 / 010-Kbuild-don-t-hardcode-path-to-awk-in-scripts-ld-vers.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Mon, 18 Jan 2016 12:27:49 +0100
3 Subject: [PATCH] Kbuild: don't hardcode path to awk in scripts/ld-version.sh
4
5 On some systems /usr/bin/awk does not exist, or is broken. Find it via
6 $PATH instead.
7
8 Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 ---
10
11 --- a/scripts/ld-version.sh
12 +++ b/scripts/ld-version.sh
13 @@ -1,5 +1,6 @@
14 -#!/usr/bin/awk -f
15 +#!/bin/sh
16 # extract linker version number from stdin and turn into single number
17 +exec awk '
18 {
19 gsub(".*\\)", "");
20 gsub(".*version ", "");
21 @@ -8,3 +9,4 @@
22 print a[1]*100000000 + a[2]*1000000 + a[3]*10000;
23 exit
24 }
25 +'