diff options
| author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2020-11-10 17:43:07 +0100 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2020-11-11 12:18:22 -0800 |
| commit | 8859b0da5aac28e4e9651c8971e7af344f8ffec1 (patch) | |
| tree | d62b977c015fd0f00d5fce2ba455d62a0b2b76d0 /tools/perf/scripts/python | |
| parent | tools/bpftool: Force clean of out-of-tree build (diff) | |
| download | linux-8859b0da5aac28e4e9651c8971e7af344f8ffec1.tar.gz linux-8859b0da5aac28e4e9651c8971e7af344f8ffec1.zip | |
tools/bpftool: Fix cross-build
The bpftool build first creates an intermediate binary, executed on the
host, to generate skeletons required by the final build. When
cross-building bpftool for an architecture different from the host, the
intermediate binary should be built using the host compiler (gcc) and
the final bpftool using the cross compiler (e.g. aarch64-linux-gnu-gcc).
Generate the intermediate objects into the bootstrap/ directory using
the host toolchain.
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-4-jean-philippe@linaro.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
