BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/6] tools/bpftool: Fix cross and out-of-tree builds
@ 2020-08-27 15:36 Jean-Philippe Brucker
  2020-08-27 15:36 ` [PATCH bpf-next 1/6] tools: Factor HOSTCC, HOSTLD, HOSTAR definitions Jean-Philippe Brucker
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Jean-Philippe Brucker @ 2020-08-27 15:36 UTC (permalink / raw)
  To: ast, daniel
  Cc: bpf, kafai, songliubraving, yhs, andriin, john.fastabend, kpsingh,
	Jean-Philippe Brucker

A few fixes for cross-building bpftool and runqslower, to build for
example an arm64 bpftool on a x86 host machine and run it on an embedded
platform. Also fix out-of-tree build, allowing for example to use the
same source tree for different target architectures.

Patch 1 factors the HOST variables definitions. Patches 2 and 3 fix the
bpftool build and patches 4-6 fix the runqslower build. I also have some
fixes for the BPF selftests build which I'll send later.

Jean-Philippe Brucker (6):
  tools: Factor HOSTCC, HOSTLD, HOSTAR definitions
  tools/bpftool: Force clean of out-of-tree build
  tools/bpftool: Fix cross-build
  tools/runqslower: Use Makefile.include
  tools/runqslower: Enable out-of-tree build
  tools/runqslower: Build bpftool using HOSTCC

 tools/bpf/bpftool/Makefile        | 38 +++++++++++++----
 tools/bpf/resolve_btfids/Makefile |  9 ----
 tools/bpf/runqslower/Makefile     | 68 ++++++++++++++++++-------------
 tools/build/Makefile              |  4 --
 tools/objtool/Makefile            |  9 ----
 tools/perf/Makefile.perf          |  4 --
 tools/power/acpi/Makefile.config  |  1 -
 tools/scripts/Makefile.include    | 10 +++++
 8 files changed, 78 insertions(+), 65 deletions(-)

-- 
2.28.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-08-31 20:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-27 15:36 [PATCH bpf-next 0/6] tools/bpftool: Fix cross and out-of-tree builds Jean-Philippe Brucker
2020-08-27 15:36 ` [PATCH bpf-next 1/6] tools: Factor HOSTCC, HOSTLD, HOSTAR definitions Jean-Philippe Brucker
2020-08-27 17:44   ` Rafael J. Wysocki
2020-08-27 18:35   ` Jiri Olsa
2020-08-27 15:36 ` [PATCH bpf-next 2/6] tools/bpftool: Force clean of out-of-tree build Jean-Philippe Brucker
2020-08-27 15:36 ` [PATCH bpf-next 3/6] tools/bpftool: Fix cross-build Jean-Philippe Brucker
2020-08-27 15:36 ` [PATCH bpf-next 4/6] tools/runqslower: Use Makefile.include Jean-Philippe Brucker
2020-08-27 15:36 ` [PATCH bpf-next 5/6] tools/runqslower: Enable out-of-tree build Jean-Philippe Brucker
2020-08-27 15:36 ` [PATCH bpf-next 6/6] tools/runqslower: Build bpftool using HOSTCC Jean-Philippe Brucker
2020-08-31 20:23 ` [PATCH bpf-next 0/6] tools/bpftool: Fix cross and out-of-tree builds Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox