Skip to contentSkip to conversation

tools/resolve_btfids: Tidy HOST_OVERRIDES

PATCH Applied Ian Rogers 3 participants 3 messages Feb 2, 2023 – Feb 7, 2023 BPF

lore
Share & tools
lore

Ian Rogers

author
#0 lore raw

PATCH 1/1 tools/resolve_btfids: Tidy HOST_OVERRIDES

Don't set EXTRA_CFLAGS to HOSTCFLAGS, ensure CROSS_COMPILE isn't passed through.

This patch is based on top of:
https://lore.kernel.org/bpf/[email protected]/

---
 tools/bpf/resolve_btfids/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/bpf/resolve_btfids/Makefile +2 -2
index abdd68ac08f4..2abdd85b4a08 100644
@@ -17,9 +17,9 @@ else
   MAKEFLAGS=--no-print-directory
 endif
 
-# always use the host compiler
+# Overrides for the prepare step libraries.
 HOST_OVERRIDES := AR="$(HOSTAR)" CC="$(HOSTCC)" LD="$(HOSTLD)" ARCH="$(HOSTARCH)" \
-		  EXTRA_CFLAGS="$(HOSTCFLAGS) $(KBUILD_HOSTCFLAGS)"
+		  CROSS_COMPILE=""
 
 RM      ?= rm
 HOSTCC  ?= gcc
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Ian Rogers

Don't set EXTRA_CFLAGS to HOSTCFLAGS, ensure CROSS_COMPILE isn't passed through.

This patch is based on top of:
https://lore.kernel.org/bpf/[email protected]/

jirka

Quoted 23 lines
---
 tools/bpf/resolve_btfids/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/bpf/resolve_btfids/Makefile +2 -2
index abdd68ac08f4..2abdd85b4a08 100644
@@ -17,9 +17,9 @@ else
   MAKEFLAGS=--no-print-directory
 endif
 
-# always use the host compiler
+# Overrides for the prepare step libraries.
 HOST_OVERRIDES := AR="$(HOSTAR)" CC="$(HOSTCC)" LD="$(HOSTLD)" ARCH="$(HOSTARCH)" \
-		  EXTRA_CFLAGS="$(HOSTCFLAGS) $(KBUILD_HOSTCFLAGS)"
+		  CROSS_COMPILE=""
 
 RM      ?= rm
 HOSTCC  ?= gcc
Signature · 1 line
2.39.1.519.gcb327c4b5f-goog
#2 lore raw
In reply to Ian Rogers
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Quoted 9 lines · On Thu, 2 Feb 2023 14:42:53 -0800 you wrote:

Don't set EXTRA_CFLAGS to HOSTCFLAGS, ensure CROSS_COMPILE isn't passed through.

This patch is based on top of:
https://lore.kernel.org/bpf/[email protected]/

[...]

Here is the summary with links:
- [v1] tools/resolve_btfids: Tidy HOST_OVERRIDES

    https://git.kernel.org/bpf/bpf-next/c/e0975ab92f24

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html