summaryrefslogtreecommitdiffstats
path: root/tools/bpf/resolve_btfids/Build
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2023-02-02 12:28:39 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2023-02-07 22:47:16 +0100
commit56a2df7615fa050cc67b89245b2a482849077939 (patch)
tree4707a0e7698a8f7c3a3cb7124a3b2c5bf2baa3dc /tools/bpf/resolve_btfids/Build
parentselftests/bpf: Fix spelling mistake "detecion" -> "detection" (diff)
downloadlinux-56a2df7615fa050cc67b89245b2a482849077939.tar.xz
linux-56a2df7615fa050cc67b89245b2a482849077939.zip
tools/resolve_btfids: Compile resolve_btfids as host program
Making resolve_btfids to be compiled as host program so we can avoid cross compile issues as reported by Nathan. Also we no longer need HOST_OVERRIDES for BINARY target, just for 'prepare' targets. Fixes: 13e07691a16f ("tools/resolve_btfids: Alter how HOSTCC is forced") Reported-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Tested-by: Nathan Chancellor <nathan@kernel.org> Acked-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/bpf/20230202112839.1131892-1-jolsa@kernel.org
Diffstat (limited to 'tools/bpf/resolve_btfids/Build')
-rw-r--r--tools/bpf/resolve_btfids/Build4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bpf/resolve_btfids/Build b/tools/bpf/resolve_btfids/Build
index ae82da03f9bf..077de3829c72 100644
--- a/tools/bpf/resolve_btfids/Build
+++ b/tools/bpf/resolve_btfids/Build
@@ -1,3 +1,5 @@
+hostprogs := resolve_btfids
+
resolve_btfids-y += main.o
resolve_btfids-y += rbtree.o
resolve_btfids-y += zalloc.o
@@ -7,4 +9,4 @@ resolve_btfids-y += str_error_r.o
$(OUTPUT)%.o: ../../lib/%.c FORCE
$(call rule_mkdir)
- $(call if_changed_dep,cc_o_c)
+ $(call if_changed_dep,host_cc_o_c)