]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Use --target from cross-compile
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 11 Oct 2019 00:27:56 +0000 (03:27 +0300)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 12 Oct 2019 23:08:59 +0000 (16:08 -0700)
commitb3dbf967f36a6776ac81e386def6e20ad59cbfa6
tree5a01fa615853745b409592cc584b9b490cf8ed2b
parentefa4460474e9beaeed42a100a3a2173cdc3a77e2
samples/bpf: Use --target from cross-compile

For cross compiling the target triple can be inherited from
cross-compile prefix as it's done in CLANG_FLAGS from kernel makefile.
So copy-paste this decision from kernel Makefile.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191011002808.28206-4-ivan.khoronzhuk@linaro.org
samples/bpf/Makefile