]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
tools resolve_btfids: Always force HOSTARCH
authorJiri Olsa <jolsa@kernel.org>
Wed, 23 Sep 2020 18:57:35 +0000 (20:57 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 23 Sep 2020 19:43:04 +0000 (12:43 -0700)
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>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200923185735.3048198-2-jolsa@kernel.org
tools/bpf/resolve_btfids/Makefile

index a88cd442639894a493e2b78d0327585516ab8df5..d3c818b8d8d3a7de03343c16d5b43cdf4ac793d7 100644 (file)
@@ -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/