Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1735912
| From | Randy Dunlap <rdunlap@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 4/4] samples/bpf: Add documentation on cross compilation |
| Date | 2017-09-20 19:00 +0200 |
| Message-ID | <urQvT-5Dp-9@gated-at.bofh.it> (permalink) |
| References | <urPTb-5ov-3@gated-at.bofh.it> <urPTb-5ov-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/20/17 09:11, Joel Fernandes wrote: > Acked-by: Alexei Starovoitov <ast@kernel.org> > Signed-off-by: Joel Fernandes <joelaf@google.com> > --- > samples/bpf/README.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/samples/bpf/README.rst b/samples/bpf/README.rst > index 79f9a58f1872..2b906127ef54 100644 > --- a/samples/bpf/README.rst > +++ b/samples/bpf/README.rst > @@ -64,3 +64,13 @@ It is also possible to point make to the newly compiled 'llc' or > 'clang' command via redefining LLC or CLANG on the make command line:: > > make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang > + > +Cross compiling samples > +----------------------- > +Inorder to cross-compile, say for arm64 targets, export CROSS_COMPILE and ARCH In order to > +environment variables before calling make. This will direct make to build > +samples for the cross target. > + > +export ARCH=arm64 > +export CROSS_COMPILE="aarch64-linux-gnu-" > +make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang > -- ~Randy
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 4/4] samples/bpf: Add documentation on cross compilation Joel Fernandes <joelaf@google.com> - 2017-09-20 18:20 +0200 Re: [PATCH v4 4/4] samples/bpf: Add documentation on cross compilation Randy Dunlap <rdunlap@infradead.org> - 2017-09-20 19:00 +0200 Re: [PATCH v4 4/4] samples/bpf: Add documentation on cross compilation Daniel Borkmann <daniel@iogearbox.net> - 2017-09-20 23:30 +0200
csiph-web