]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: build with -D__TARGET_ARCH_$(SRCARCH)
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 15 Jul 2019 09:11:03 +0000 (11:11 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Jul 2019 21:13:17 +0000 (23:13 +0200)
commit7ce89ae28ed014a937d868550c6180d5aba81b9f
tree9d37ab0d210254906f978466162a4381ca75e9d8
parente1207d2a0850c592937fafe7fb94c4131590e7e0
samples/bpf: build with -D__TARGET_ARCH_$(SRCARCH)

While $ARCH can be relatively flexible (see Makefile and
tools/scripts/Makefile.arch), $SRCARCH always corresponds to a directory
name under arch/.

Therefore, build samples with -D__TARGET_ARCH_$(SRCARCH), since that
matches the expectations of bpf_helpers.h.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/Makefile