All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH 1/4] llvm: Add BPF backend
Date: Tue, 29 Sep 2020 21:35:47 +0200	[thread overview]
Message-ID: <93a07382-c0a6-841e-b54a-2f2a7d6af600@gmail.com> (raw)
In-Reply-To: <20200929102618.28571-2-qais.yousef@arm.com>

Hello Qais,

Le 29/09/2020 ? 12:26, Qais Yousef a ?crit?:
> We need BPF backend to enable BPF Compiler Collection (BCC) and bpftrace
> packager in later commits.
> 
> Signed-off-by: Qais Yousef <qais.yousef@arm.com>

There is already a pending patch to review enabling BPF backend in llvm.
http://patchwork.ozlabs.org/project/buildroot/patch/20200824181740.12878-1-jugurtha.belkalem at smile.fr/

Your patch appears to be the same as the one we published with Jugurtha.
You are welcome to review and tests patches available from patchwork, see the
manual: http://nightly.buildroot.org/manual.html#_reviewing_and_testing_patches

The bcc patch series is present in patchwork since a long time due to lack of
review, see the first submission back in January 2019:
http://patchwork.ozlabs.org/project/buildroot/patch/20190113212118.14512-1-romain.naour at gmail.com/

So, Your help to review is really important :)

Best regards,
Romain

> ---
>  package/llvm/Config.in | 6 ++++++
>  package/llvm/llvm.mk   | 5 +++++
>  2 files changed, 11 insertions(+)
> 
> diff --git a/package/llvm/Config.in b/package/llvm/Config.in
> index 1d21d879da..22d51b4e3c 100644
> --- a/package/llvm/Config.in
> +++ b/package/llvm/Config.in
> @@ -34,6 +34,12 @@ config BR2_PACKAGE_LLVM_AMDGPU
>  	  Build AMDGPU target. Select this option if you are going
>  	  to install mesa3d with llvm and use Gallium Radeon driver.
>  
> +config BR2_PACKAGE_LLVM_BPF
> +	bool "BPF backend"
> +	help
> +	  Build BPF target. Select this option if you want to use BPF tools
> +	  like BCC on the target.
> +
>  config BR2_PACKAGE_LLVM_RTTI
>  	bool "enable rtti"
>  	help
> diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk
> index 24d033d124..48a298191c 100644
> --- a/package/llvm/llvm.mk
> +++ b/package/llvm/llvm.mk
> @@ -61,6 +61,11 @@ ifeq ($(BR2_PACKAGE_LLVM_AMDGPU),y)
>  LLVM_TARGETS_TO_BUILD += AMDGPU
>  endif
>  
> +# Build BPF backend
> +ifeq ($(BR2_PACKAGE_LLVM_BPF),y)
> +LLVM_TARGETS_TO_BUILD += BPF
> +endif
> +
>  # Use native llvm-tblgen from host-llvm (needed for cross-compilation)
>  LLVM_CONF_OPTS += -DLLVM_TABLEGEN=$(HOST_DIR)/bin/llvm-tblgen
>  
> 

  reply	other threads:[~2020-09-29 19:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-29 10:26 [Buildroot] [RFC PATCH 0/4] add BCC and bpftrace packages Qais Yousef
2020-09-29 10:26 ` [Buildroot] [RFC PATCH 1/4] llvm: Add BPF backend Qais Yousef
2020-09-29 19:35   ` Romain Naour [this message]
2020-09-30 14:38     ` Qais Yousef
2020-09-29 10:26 ` [Buildroot] [RFC PATCH 2/4] Add BPF Compiler Collection (BCC) Package Qais Yousef
2020-09-29 20:33   ` Romain Naour
2020-10-03 20:39     ` Qais Yousef
2020-09-29 10:26 ` [Buildroot] [RFC PATCH 3/4] Add bpftrace package Qais Yousef
2020-09-29 20:55   ` Romain Naour
2020-10-03 20:56     ` Qais Yousef
2020-10-04 20:10       ` Qais Yousef
2020-10-08 22:31     ` Qais Yousef
2020-09-29 10:26 ` [Buildroot] [RFC PATCH 4/4] clang: Fix undefined reference to dladdr error Qais Yousef
2020-09-29 20:59   ` Romain Naour
2020-10-03 20:58     ` Qais Yousef
2020-10-04 16:12       ` Qais Yousef
2020-09-29 21:08 ` [Buildroot] [RFC PATCH 0/4] add BCC and bpftrace packages Romain Naour
2020-10-01 20:46   ` Qais Yousef

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93a07382-c0a6-841e-b54a-2f2a7d6af600@gmail.com \
    --to=romain.naour@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.