]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpftool: Fix build slowdown
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Tue, 10 Nov 2020 16:43:11 +0000 (17:43 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 11 Nov 2020 20:18:23 +0000 (12:18 -0800)
commit83f8898035f9bfb5dd83649624532093cd66c10b
tree6fe29d061b40614361095a208de4e40732ed4f32
parent249c9f0010d1f508d29d6ac636d4917e99cd44d4
tools/bpftool: Fix build slowdown

Commit 7cd62fc1ae67 ("tools/bpftool: Support passing BPFTOOL_VERSION to
make") changed BPFTOOL_VERSION to a recursively expanded variable,
forcing it to be recomputed on every expansion of CFLAGS and
dramatically slowing down the bpftool build. Restore BPFTOOL_VERSION as
a simply expanded variable, guarded by an ifeq().

Fixes: 7cd62fc1ae67 ("tools/bpftool: Support passing BPFTOOL_VERSION to make")
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-8-jean-philippe@linaro.org
tools/bpf/bpftool/Makefile