Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/3] tools: bpftool: improve bpftool build experience
@ 2019-08-29 10:56 Quentin Monnet
  2019-08-29 10:56 ` [PATCH bpf-next 1/3] tools: bpftool: ignore make built-in rules for getting kernel version Quentin Monnet
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Quentin Monnet @ 2019-08-29 10:56 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann
  Cc: bpf, netdev, oss-drivers, Quentin Monnet, Lorenz Bauer,
	Ilya Leoshkevich, Jakub Kicinski

Hi,
This set attempts to make it easier to build bpftool, in particular when
passing a specific output directory. This is a follow-up to the
conversation held last month by Lorenz, Ilya and Jakub [0].

The first patch is a minor fix to bpftool's Makefile, regarding the
retrieval of kernel version (which currently prints a non-relevant make
warning on some invocations).

Second patch improves the Makefile commands to support more "make"
invocations, or to fix building with custom output directory. On Jakub's
suggestion, a script is also added to BPF selftests in order to keep track
of the supported build variants.

At last, third patch is a sligthly modified version of Ilya's fix regarding
libbpf.a appearing twice on the linking command for bpftool.

[0] https://lore.kernel.org/bpf/CACAyw9-CWRHVH3TJ=Tke2x8YiLsH47sLCijdp=V+5M836R9aAA@mail.gmail.com/

Cc: Lorenz Bauer <lmb@cloudflare.com>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>

Quentin Monnet (3):
  tools: bpftool: ignore make built-in rules for getting kernel version
  tools: bpftool: improve and check builds for different make
    invocations
  tools: bpftool: do not link twice against libbpf.a in Makefile

 tools/bpf/bpftool/Makefile                    |  18 ++-
 tools/testing/selftests/bpf/Makefile          |   3 +-
 .../selftests/bpf/test_bpftool_build.sh       | 137 ++++++++++++++++++
 3 files changed, 149 insertions(+), 9 deletions(-)
 create mode 100755 tools/testing/selftests/bpf/test_bpftool_build.sh

-- 
2.17.1


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

end of thread, other threads:[~2019-08-30 10:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-29 10:56 [PATCH bpf-next 0/3] tools: bpftool: improve bpftool build experience Quentin Monnet
2019-08-29 10:56 ` [PATCH bpf-next 1/3] tools: bpftool: ignore make built-in rules for getting kernel version Quentin Monnet
2019-08-29 10:56 ` [PATCH bpf-next 2/3] tools: bpftool: improve and check builds for different make invocations Quentin Monnet
2019-08-29 16:03   ` Ilya Leoshkevich
2019-08-30 10:58     ` Quentin Monnet
2019-08-29 10:56 ` [PATCH bpf-next 3/3] tools: bpftool: do not link twice against libbpf.a in Makefile Quentin Monnet
2019-08-29 17:25 ` [PATCH bpf-next 0/3] tools: bpftool: improve bpftool build experience Jakub Kicinski

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