]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Use __LINUX_ARM_ARCH__ selector for arm
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 11 Oct 2019 00:27:58 +0000 (03:27 +0300)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 12 Oct 2019 23:08:59 +0000 (16:08 -0700)
commit9cc1c6f6a2bdb5466e870aead90ce69588a8c1ef
tree163526c12e274dfe7551dda3db6ff31a1dd97aad
parentec288a2101e2d07c2903483eb0a0dd4c6f459a49
samples/bpf: Use __LINUX_ARM_ARCH__ selector for arm

For arm, -D__LINUX_ARM_ARCH__=X is min version used as instruction
set selector and is absolutely required while parsing some parts of
headers. It's present in KBUILD_CFLAGS but not in autoconf.h, so let's
retrieve it from and add to programs cflags. In another case errors
like "SMP is not supported" for armv7 and bunch of other errors are
issued resulting to incorrect final object.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191011002808.28206-6-ivan.khoronzhuk@linaro.org
samples/bpf/Makefile