Thread (5 messages) 5 messages, 3 authors, 2020-09-23

Re: [PATCHv2 bpf-next 2/2] tools resolve_btfids: Always force HOSTARCH

From: Andrii Nakryiko <hidden>
Date: 2020-09-23 16:08:52
Also in: bpf

On Wed, Sep 23, 2020 at 7:06 AM Jiri Olsa [off-list ref] wrote:
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 <redacted>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
Acked-by: Andrii Nakryiko <redacted>
quoted hunk ↗ jump to hunk
 tools/bpf/resolve_btfids/Makefile | 2 ++
 1 file changed, 2 insertions(+)
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)
+ARCH     = $(HOSTARCH)

 OUTPUT ?= $(srctree)/tools/bpf/resolve_btfids/

--
2.26.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help