diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2020-11-10 19:43:06 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2020-11-11 23:18:22 +0300 |
commit | 9e8929fdbb9c9026bd3a732e9ac7dc9617c86309 (patch) | |
tree | 95bd06ea2f8e637eac88396cc09bc8b95d0dc6b4 /include/kvm/arm_hypercalls.h | |
parent | c8a950d0d3b926a02c7b2e713850d38217cec3d1 (diff) | |
download | linux-9e8929fdbb9c9026bd3a732e9ac7dc9617c86309.tar.xz |
tools/bpftool: Force clean of out-of-tree build
Cleaning a partial build can fail if the output directory for libbpf
wasn't created:
$ make -C tools/bpf/bpftool O=/tmp/bpf clean
/bin/sh: line 0: cd: /tmp/bpf/libbpf/: No such file or directory
tools/scripts/Makefile.include:17: *** output directory "/tmp/bpf/libbpf/" does not exist. Stop.
make: *** [Makefile:36: /tmp/bpf/libbpf/libbpf.a-clean] Error 2
As a result make never gets around to clearing the leftover objects. Add
the libbpf output directory as clean dependency to ensure clean always
succeeds (similarly to the "descend" macro). The directory is later
removed by the clean recipe.
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201110164310.2600671-3-jean-philippe@linaro.org
Diffstat (limited to 'include/kvm/arm_hypercalls.h')
0 files changed, 0 insertions, 0 deletions