]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: use correct make variable type to improve compilation time
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 28 Jun 2018 21:41:35 +0000 (14:41 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 30 Jun 2018 23:01:50 +0000 (01:01 +0200)
commit355e107240a3cb6f7cb4574b0a982a8770ca5a0a
treec1ffa7cad1baaa4f888aabf52318204d29867c46
parentc3da7a69000deea84cdb60d2d9d55fa2d749d503
tools: bpftool: use correct make variable type to improve compilation time

Commit 70a0d13b1d2a ("tools/bpftool: use version from the kernel
source tree") added version to bpftool.  The version used is
equal to the kernel version and obtained by running make kernelversion
against kernel source tree.  Version is then communicated
to the sources with a command line define set in CFLAGS.

Use a simply expanded variable for the version, otherwise the
recursive make will run every time CFLAGS are used.

This brings the single-job compilation time for me from almost
16 sec down to less than 4 sec.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/Makefile