From patchwork Thu Aug 13 13:05:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1344277 X-Patchwork-Delegate: romain.naour@openwide.fr Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=dqzD3oxg; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BS6J50y2Vz9sTT for ; Thu, 13 Aug 2020 23:05:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CB4A088601; Thu, 13 Aug 2020 13:05:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AW4btRGYKBgv; Thu, 13 Aug 2020 13:05:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id DEF7288634; Thu, 13 Aug 2020 13:05:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2815D1BF2F2 for ; Thu, 13 Aug 2020 13:05:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 24211882E1 for ; Thu, 13 Aug 2020 13:05:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aP5KB1QWWhWN for ; Thu, 13 Aug 2020 13:05:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 54A27882F6 for ; Thu, 13 Aug 2020 13:05:32 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id x5so4631136wmi.2 for ; Thu, 13 Aug 2020 06:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=boKtTir8fsosrWGrMOu5MewWHdf2qE+E8tzxX89YZLc=; b=dqzD3oxgxLRn7yuOyI9qBKF5XPgw0qFDKsXqlTkxlq14jioRBzXpX/0QQNFCpGXAqR jlYDXX3Q55h58eiIdvTHJoKcAdLwq83xGgYAc791seegn1IEnQQs1rvb+z6BWsgfdI1A AQMKdp+jBXZUw8M5jsozw4tncL+NVTz43jPtpq87NXFLXl6HzFgOf8P/H3+WmnbbgblV 0cbpKZt1xAeA+xuL0596WCEhxAu60uqJiLwWNsb6roeOaQO2lTMb85z6hcIxo1NAVcJ6 4ou31M7tp9pnRzPQENAXCSVTk+ONRGkv6Y6z4c+WzJracpx9twPhDxhTVCVuLiU2JGRe WcFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=boKtTir8fsosrWGrMOu5MewWHdf2qE+E8tzxX89YZLc=; b=A6n2daEEkj/A0TsSZZtC9CO91zBC8ABuK/8wZ6HQCq7YdQwIwP7AqCj4FjIE/i79l+ ZJF3woOAxSsNQqn5f9+lklCIWCfJa0e2SVVH6itG1I9FkPoPmxU+P70+bc/Q8oks5G0e tbzS6RanXMg+tkRBhijfaPK3NKKdQsNiw7EuEV4VFW/PS8BNhR+Bna/OfEmRG4dpX/jv x+1410qwZzsB7bubRoIqMqDF8KM5YRAtXGKI1W+eiBuKFnFxpWXR01yIDzw8HCjX1+I8 vLo+Vt62Bwm5UVbCsMZAjD5gogJ2vkPpSpu1CPrH5gdb7xRn5Du7PwYToKxBspf1g51X bcSA== X-Gm-Message-State: AOAM533hQ9JLuDaRDHw0TG3E8JYfEO0Zh9FdzCLh0JFLELBMcIhJ/Hxp TDopvzRgm8OBmo2Kk/8jgLWXZt78ESQ= X-Google-Smtp-Source: ABdhPJxu6h0SdD8ndzoAzK/VR/ZnekRAmGCHBv5HcZLCyB7uPimSTVgLb2T64qIzaMnLs5NFdAs3JQ== X-Received: by 2002:a1c:98c1:: with SMTP id a184mr4447931wme.116.1597323930613; Thu, 13 Aug 2020 06:05:30 -0700 (PDT) Received: from P-NAN-SUCRE.numericable.fr (122.57.26.93.rev.sfr.net. [93.26.57.122]) by smtp.gmail.com with ESMTPSA id 32sm10922374wrh.18.2020.08.13.06.05.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Aug 2020 06:05:30 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 13 Aug 2020 15:05:25 +0200 Message-Id: <1597323926-20271-2-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597323926-20271-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1597323926-20271-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH 1/2] package/llvm: add BPF backend X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jugurtha BELKALEM , romain.naour@smile.fr MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" bcc is a front-end tool for eBPF : https://github.com/iovisor/bcc/blob/master/README.md. eBPF is the most powerful Linux tracer, and bcc allows to write eBPF scripts in C and PYTHON3. BCC requires enabling LLVM backend BPF support. Signed-off-by: Jugurtha BELKALEM --- 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 1d21d87..6ec2ffc 100644 --- a/package/llvm/Config.in +++ b/package/llvm/Config.in @@ -47,6 +47,12 @@ config BR2_PACKAGE_LLVM_RTTI https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html +config BR2_PACKAGE_LLVM_BPF + bool "BPF backend" + help + Build BPF target. Select this option if you are going + to install bcc on the target. + endif comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 4.8, dynamic library" diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk index 24d033d..48a2981 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