diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2019-11-10 17:31:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-11 21:42:09 -0800 |
commit | 6cc2c8762dfdd8c3eeb9d71ed6ad6314d7d5d79c (patch) | |
tree | f947ffb0d28c4b5641f70af34cbc01d0a2d028c5 /samples/bpf/README.rst | |
parent | 5b67a3ed4fe3f859045cfcc5b1dbd80d058075b5 (diff) | |
download | linux-6cc2c8762dfdd8c3eeb9d71ed6ad6314d7d5d79c.tar.gz linux-6cc2c8762dfdd8c3eeb9d71ed6ad6314d7d5d79c.tar.bz2 linux-6cc2c8762dfdd8c3eeb9d71ed6ad6314d7d5d79c.zip |
samples/bpf: adjust Makefile and README.rst
Side effect of some kbuild changes resulted in breaking the
documented way to build samples/bpf/.
This patch change the samples/bpf/Makefile to work again, when
invoking make from the subdir samples/bpf/. Also update the
documentation in README.rst, to reflect the new way to build.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/README.rst')
-rw-r--r-- | samples/bpf/README.rst | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/samples/bpf/README.rst b/samples/bpf/README.rst index cc1f00a1ee06..dd34b2d26f1c 100644 --- a/samples/bpf/README.rst +++ b/samples/bpf/README.rst @@ -46,12 +46,10 @@ Compiling For building the BPF samples, issue the below command from the kernel top level directory:: - make samples/bpf/ - -Do notice the "/" slash after the directory name. + make M=samples/bpf It is also possible to call make from this directory. This will just -hide the the invocation of make as above with the appended "/". +hide the invocation of make as above. Manually compiling LLVM with 'bpf' support ------------------------------------------ @@ -77,7 +75,7 @@ Quick sniplet for manually compiling LLVM and clang 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 + make M=samples/bpf LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang Cross compiling samples ----------------------- @@ -98,10 +96,10 @@ Pointing LLC and CLANG is not necessarily if it's installed on HOST and have in its targets appropriate arm64 arch (usually it has several arches). Build samples:: - make samples/bpf/ + make M=samples/bpf Or build samples with SYSROOT if some header or library is absent in toolchain, say libelf, providing address to file system containing headers and libs, can be RFS of target board:: - make samples/bpf/ SYSROOT=~/some_sysroot + make M=samples/bpf SYSROOT=~/some_sysroot |