Skip to content

Commit dc3652d

Browse files
olsajiriAlexei Starovoitov
authored and
Alexei Starovoitov
committed
tools resolve_btfids: Always force HOSTARCH
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 <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 017dab3 commit dc3652d

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)