]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: Add -target to clang switch while cross compiling.
authorAbhijit Ayarekar <abhijit.ayarekar@caviumnetworks.com>
Fri, 13 Oct 2017 19:24:06 +0000 (12:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 20:04:32 +0000 (21:04 +0100)
commit9db9583839b760fc492a7b288edfe2213184a579
treeba6249a97b191b520e42d10352940e0e437dcc2e
parent745482e0c03793522fa19f06e6249b521d6adca1
bpf: Add -target to clang switch while cross compiling.

Update to llvm excludes assembly instructions.
llvm git revision is below

commit 65fad7c26569 ("bpf: add inline-asm support")

This change will be part of llvm  release 6.0

__ASM_SYSREG_H define is not required for native compile.
-target switch includes appropriate target specific files
while cross compiling

Tested on x86 and arm64.

Signed-off-by: Abhijit Ayarekar <abhijit.ayarekar@caviumnetworks.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/Makefile