diff mbox series

[PATCHv3,bpf-next,2/2] tools resolve_btfids: Always force HOSTARCH

Message ID 20200923185735.3048198-2-jolsa@kernel.org
State Accepted
Delegated to: BPF Maintainers
Headers show
Series [PATCHv3,bpf-next,1/2] bpf: Check CONFIG_BPF option for resolve_btfids | expand

Commit Message

Jiri Olsa Sept. 23, 2020, 6:57 p.m. UTC
Seth reported problem with cross builds, that fail
on resolve_btfids build, because we are trying to
build it on cross build arch.

Fixing this by always forcing the host arch.

Reported-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
 tools/bpf/resolve_btfids/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile
index a88cd4426398..d3c818b8d8d3 100644
--- a/tools/bpf/resolve_btfids/Makefile
+++ b/tools/bpf/resolve_btfids/Makefile
@@ -1,5 +1,6 @@ 
 # SPDX-License-Identifier: GPL-2.0-only
 include ../../scripts/Makefile.include
+include ../../scripts/Makefile.arch
 ifeq ($(srctree),)
 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
@@ -29,6 +30,7 @@  endif
 AR       = $(HOSTAR)
 CC       = $(HOSTCC)
 LD       = $(HOSTLD)
 OUTPUT ?= $(srctree)/tools/bpf/resolve_btfids/