summaryrefslogtreecommitdiffstats
path: root/tools/bpf
diff options
context:
space:
mode:
authorJean-Philippe Brucker <jean-philippe@linaro.org>2020-11-10 17:43:10 +0100
committerAndrii Nakryiko <andrii@kernel.org>2020-11-11 12:18:22 -0800
commit2d9393fefb506fb8c8a483e5dc9bbd7774657b89 (patch)
tree9acb7e39aab71cfb68bc1548f83ffa87b10ef791 /tools/bpf
parent85e59344d0790379e063bf3cd3dd0fe91ce3b505 (diff)
downloadlinux-2d9393fefb506fb8c8a483e5dc9bbd7774657b89.tar.gz
linux-2d9393fefb506fb8c8a483e5dc9bbd7774657b89.tar.bz2
linux-2d9393fefb506fb8c8a483e5dc9bbd7774657b89.zip
tools/runqslower: Build bpftool using HOSTCC
When cross building runqslower for an other architecture, the intermediate bpftool used to generate a skeleton must be built using the host toolchain. Pass HOSTCC and HOSTLD, defined in Makefile.include, to the bpftool Makefile. Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20201110164310.2600671-7-jean-philippe@linaro.org
Diffstat (limited to 'tools/bpf')
-rw-r--r--tools/bpf/runqslower/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bpf/runqslower/Makefile b/tools/bpf/runqslower/Makefile
index 0fc4d4046193..4d5ca54fcd4c 100644
--- a/tools/bpf/runqslower/Makefile
+++ b/tools/bpf/runqslower/Makefile
@@ -80,4 +80,5 @@ $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(BPFOBJ_OU
$(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(BPFOBJ_OUTPUT) $@
$(DEFAULT_BPFTOOL): | $(BPFTOOL_OUTPUT)
- $(Q)$(MAKE) $(submake_extras) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT)
+ $(Q)$(MAKE) $(submake_extras) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT) \
+ CC=$(HOSTCC) LD=$(HOSTLD)