aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorAlexandre Courbot <gnurou@gmail.com>2024-08-04 14:50:57 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-08-06 14:01:03 +0900
commit6fc9aacad49e3fbecd270c266850d50c453d52ef (patch)
treedf5544e04d9e9c3f04278dd521fb9fbb274165d7 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parent8fcd8d1e63c05c48b3ac16d0c3e2cd6a7a5c8ec4 (diff)
Makefile: add $(srctree) to dependency of compile_commands.json target
When trying to build compile_commands.json for an external module against the kernel built in a separate output directory, the following error is displayed: make[1]: *** No rule to make target 'scripts/clang-tools/gen_compile_commands.py', needed by 'compile_commands.json'. Stop. This is because gen_compile_commands.py was previously looked up using a relative path to $(srctree), but commit b1992c3772e6 ("kbuild: use $(src) instead of $(srctree)/$(src) for source directory") stopped defining VPATH for external module builds. Prefixing gen_compile_commands.py with $(srctree) fixes the problem. Fixes: b1992c3772e6 ("kbuild: use $(src) instead of $(srctree)/$(src) for source directory") Signed-off-by: Alexandre Courbot <gnurou@gmail.com> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions