bpftool: Remove redundant slashes
authorYuntao Wang <ytcoode@gmail.com>
Sat, 26 Feb 2022 16:38:15 +0000 (00:38 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 Feb 2022 15:06:21 +0000 (16:06 +0100)
commitc62dd8a58d19fa35b60c84ab2435ac3ad0d3777e
treebc9bbad19ae66feb0782ea2471b3b7d5294a0db5
parent5e214f2e43e453d862ebbbd2a4f7ee3fe650f209
bpftool: Remove redundant slashes

Because the OUTPUT variable ends with a slash but CURDIR doesn't, to keep
the _OUTPUT value consistent, we add a trailing slash to CURDIR when
defining _OUTPUT variable.

Since the _OUTPUT variable holds a value ending with a trailing slash,
there is no need to add another one when defining BOOTSTRAP_OUTPUT and
LIBBPF_OUTPUT variables. Likewise, when defining LIBBPF_INCLUDE and
LIBBPF_BOOTSTRAP_INCLUDE, we shouldn't add an extra slash either for the
same reason.

When building libbpf, the value of the DESTDIR argument should also not
end with a trailing slash.

Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220226163815.520133-1-ytcoode@gmail.com
tools/bpf/bpftool/Makefile