]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Enable cross-building with clang
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Thu, 16 Dec 2021 16:38:41 +0000 (16:38 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 16 Dec 2021 20:15:05 +0000 (12:15 -0800)
commit4c90de1cc0d28a4d455b164d0734066b1aedf7e1
treebb315ff259ef430383ca3f1a1201f26f4783004e
parent48590974e3cca06da9d8f198a13361f5f0d7058f
bpftool: 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, and adds that to CFLAGS. Remove
the cross flags for the bootstrap bpftool, and erase the CROSS_COMPILE
flag for the bootstrap libbpf.

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-5-jean-philippe@linaro.org
tools/bpf/bpftool/Makefile