summaryrefslogtreecommitdiff
path: root/aports/linux-lts/0004-objtool-respect-AWK-setting.patch
diff options
context:
space:
mode:
Diffstat (limited to 'aports/linux-lts/0004-objtool-respect-AWK-setting.patch')
-rw-r--r--aports/linux-lts/0004-objtool-respect-AWK-setting.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/aports/linux-lts/0004-objtool-respect-AWK-setting.patch b/aports/linux-lts/0004-objtool-respect-AWK-setting.patch
new file mode 100644
index 0000000..7c04574
--- /dev/null
+++ b/aports/linux-lts/0004-objtool-respect-AWK-setting.patch
@@ -0,0 +1,26 @@
+From dc34b09b20b7aa88ca55742a113d223f33c09c32 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 28 Nov 2023 14:22:46 +0100
+Subject: [PATCH 4/5] objtool: respect AWK setting
+
+AWK= is not passed on as an makefile argument so we need pass it as an env.
+---
+ tools/objtool/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
+index 83b100c1e7f6..6ccddfa6de4f 100644
+--- a/tools/objtool/Makefile
++++ b/tools/objtool/Makefile
+@@ -42,7 +42,7 @@ OBJTOOL_CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED)
+ # Always want host compilation.
+ HOST_OVERRIDES := CC="$(HOSTCC)" LD="$(HOSTLD)" AR="$(HOSTAR)"
+
+-AWK = awk
++AWK ?= awk
+ MKDIR = mkdir
+
+ ifeq ($(V),1)
+--
+2.43.0
+