]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: Don't use $(COMPILE.c)
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 2 Jun 2020 17:56:48 +0000 (19:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Jun 2020 20:02:38 +0000 (22:02 +0200)
commitfb8b0afde7d40ee288ad2ec6022f5a345700dadf
tree639cc6eba6d0d30925f816a0de2084a7c3636920
parent02e818272f49dd0eddb4666ef5e16f2d85e2bfd0
tools/bpf: Don't use $(COMPILE.c)

When using make kselftest TARGETS=bpf, tools/bpf is built with
MAKEFLAGS=rR, which causes $(COMPILE.c) to be undefined, which in turn
causes the build to fail with

  CC       kselftest/bpf/tools/build/bpftool/map_perf_ring.o
/bin/sh: 1: -MMD: not found

Fix by using $(CC) $(CFLAGS) -c instead of $(COMPILE.c).

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200602175649.2501580-2-iii@linux.ibm.com
tools/bpf/Makefile
tools/bpf/bpftool/Makefile