Skip to content

Commit dbb7d0e

Browse files
olsajirikernel-patches-bot
authored andcommitted
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. Fixes: fbbb68d ("bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object") Reported-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> --- tools/bpf/resolve_btfids/Makefile | 2 ++ 1 file changed, 2 insertions(+)
1 parent c86599c commit dbb7d0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/bpf/resolve_btfids/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
include ../../scripts/Makefile.include
3+
include ../../scripts/Makefile.arch
34

45
ifeq ($(srctree),)
56
srctree := $(patsubst %/,%,$(dir $(CURDIR)))
@@ -29,6 +30,7 @@ endif
2930
AR = $(HOSTAR)
3031
CC = $(HOSTCC)
3132
LD = $(HOSTLD)
33+
ARCH = $(HOSTARCH)
3234

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

0 commit comments

Comments
 (0)