Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1705478 > unrolled thread
| Started by | Joel Fernandes <joelaf@google.com> |
|---|---|
| First post | 2017-08-07 15:10 +0200 |
| Last post | 2017-08-07 15:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH RFC 5/5] samples/bpf: Add documentation on cross compilation Joel Fernandes <joelaf@google.com> - 2017-08-07 15:10 +0200
| From | Joel Fernandes <joelaf@google.com> |
|---|---|
| Date | 2017-08-07 15:10 +0200 |
| Subject | [PATCH RFC 5/5] samples/bpf: Add documentation on cross compilation |
| Message-ID | <ubPXc-bV-21@gated-at.bofh.it> |
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 +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 -- 2.14.0.rc1.383.gd1ce394fe2-goog
Back to top | Article view | linux.kernel
csiph-web