diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2021-12-16 16:38:39 +0000 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-12-16 12:15:04 -0800 |
commit | bf1be903461a404a9d1c720b0872501ca35abc89 (patch) | |
tree | c43f38b213475c82f80c6e896177fa8e2af87399 /include/sound | |
parent | cebdb7374577ac6e14afb11311af8c2c44a259fa (diff) | |
download | linux-bf1be903461a404a9d1c720b0872501ca35abc89.tar.bz2 |
tools/resolve_btfids: Support cross-building the kernel with clang
The CROSS_COMPILE variable may be present during resolve_btfids build if
the kernel is being cross-built. Since resolve_btfids is always executed
on the host, we set CC to HOSTCC in order to use the host toolchain when
cross-building with GCC. But instead of a toolchain prefix, cross-build
with clang uses a "-target" parameter, which Makefile.include deduces
from the CROSS_COMPILE variable. In order to avoid cross-building
libbpf, clear CROSS_COMPILE before building resolve_btfids.
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-3-jean-philippe@linaro.org
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions