tools/runqslower: Enable cross-building with clang
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Thu, 16 Dec 2021 16:38:42 +0000 (16:38 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 16 Dec 2021 20:15:05 +0000 (12:15 -0800)
commitbb7b75e860eec31aa67b83935849fdc46418c13e
treef4c67be6e61f604fbe97b9830e1f46660b08ac82
parentbdadbb44c90aedaa74d46f1b113bd845774efa39
tools/runqslower: Enable cross-building with clang

Cross-building using clang requires passing the "-target" flag rather
than using the CROSS_COMPILE prefix. Makefile.include transforms
CROSS_COMPILE into CLANG_CROSS_FLAGS. Add them to CFLAGS, and erase
CROSS_COMPILE for the bpftool build, since it needs to be executed on
the host.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20211216163842.829836-6-jean-philippe@linaro.org
tools/bpf/runqslower/Makefile