On Tue, Nov 10, 2020 at 8:44 AM Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx> wrote: > > 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@xxxxxxxxxx> > --- > v3: Always set LIBBPF_OUTPUT. Tidy the clean recipe. > --- LGTM. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > tools/bpf/bpftool/Makefile | 34 ++++++++++++++++++++++++++-------- > 1 file changed, 26 insertions(+), 8 deletions(-) > [...]