summaryrefslogtreecommitdiff
path: root/linux-dragon/0004-objtool-respect-AWK-setting.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linux-dragon/0004-objtool-respect-AWK-setting.patch')
-rw-r--r--linux-dragon/0004-objtool-respect-AWK-setting.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/linux-dragon/0004-objtool-respect-AWK-setting.patch b/linux-dragon/0004-objtool-respect-AWK-setting.patch
new file mode 100644
index 0000000..df2c255
--- /dev/null
+++ b/linux-dragon/0004-objtool-respect-AWK-setting.patch
@@ -0,0 +1,28 @@
+From 6f4847499bf89bbb857b97aa2f66d4277da2b481 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.
+
+Signed-off-by: Achill Gilgenast <achill@achill.org>
+---
+ tools/objtool/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
+index 8c20361dd100..889e2e0c0354 100644
+--- a/tools/objtool/Makefile
++++ b/tools/objtool/Makefile
+@@ -43,7 +43,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
+
+ BUILD_ORC := n
+--
+2.52.0
+