From patchwork Thu May 2 18:51:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094505 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.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.b="1fhxapbh"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44w4D40X4Cz9sBr for ; Fri, 3 May 2019 04:53:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4B7F8879A9; Thu, 2 May 2019 18:53:38 +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 YxHPsPCD2IwX; Thu, 2 May 2019 18:53:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id DFA97879B5; Thu, 2 May 2019 18:53:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 4B3641BF3FC for ; Thu, 2 May 2019 18:53:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 203C481A13 for ; Thu, 2 May 2019 18:53:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hu-TOK7DHW-D for ; Thu, 2 May 2019 18:53:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 39AC186825 for ; Thu, 2 May 2019 18:51:42 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id c12so4804102wrt.8 for ; Thu, 02 May 2019 11:51:42 -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=/fI4qtoc8WuEsK04g8PmkjQIkHgwIYaYu7KJoPLDRE0=; b=1fhxapbh2EEEoXwBZpUaWv6dxdoPoPHMy/lCOs4forSGVzlsHBv9DYTlqKuS0yEORH IwxqujnpSRIX4eSaekfIeQVi6WMKfnJP99ZyzZ9c/j1NEKTuHTMXrq2haizXTrzFQ0hM i8r3kNR68YeU8whGPdpAVlJeglo4jEUGBav24azQQ5YM7MQMn1sGRRxTgafJfgPaQLfB gDsPo6nUzMQKHQxfbY44t5mv13pqBFC4yGrsnWRhxmqhMtm5a332SLjJKA+mFyaiCbVi 1vUBgNxKuc4M6wnhW+OfTPfSmFLtewhipubuF5sUsGZ0+ARiJtIQia4oJMZCvab4L+ZF TV4g== 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=/fI4qtoc8WuEsK04g8PmkjQIkHgwIYaYu7KJoPLDRE0=; b=stvmxCK3GrLrWLk4oR5/GRU1FYyn+413SfyDrwukJBtj1ZmJlrMg5OSGZl+ZCtYMPj kaugc9h9WwImD/LBlHuGRQkX/72jajTZBoOsPB3fp1Ru7oip1zL4RD29w9UQfiZct91a YAYVSOwPyMhMO1mMQrIv/6PY6LRm1uAsE2Sqsvpe8ZHCTmmvxHBMqAUK2zpfsd9rHpDx Lffahhhau+oRMfx2qoFVhdnlwc97XfY0hVpQhSQ7U72wx1qcT2g5+5zW3gGXMVGMIy89 tGodvBYYQVVzX06gFG9zOKlxZ4eeu5eXcR+5dPrSe9yQemcvVMf4nK5GBBSJ8hkDDtiZ N6GQ== X-Gm-Message-State: APjAAAXo8r/fx3TKiB1f16J4Mw9SQOqr9frBeLD1YkK1+suQVVmY3XrT Vp/XvfxwSWCEoo+EcZtSzFNKXSmXBXw= X-Google-Smtp-Source: APXvYqzGuAnW1hckooRlcUDLmWwz5REW13pg9HQ3jMgilmCKutDVEPAdPISVAk8EoEm8etwwL1vNVA== X-Received: by 2002:adf:f310:: with SMTP id i16mr3813739wro.291.1556823100783; Thu, 02 May 2019 11:51:40 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:40 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:24 +0200 Message-Id: <1556823086-29917-6-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 5/7] 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 , Valentin Korenblit MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Romain Naour The BPF backend is needed for bcc tool. Signed-off-by: Romain Naour Signed-off-by: Jugurtha BELKALEM Cc: Valentin Korenblit --- 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 83e9466..72d920e 100644 --- a/package/llvm/Config.in +++ b/package/llvm/Config.in @@ -35,6 +35,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 are going + to install bcc on the target. + endif comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 4.8, host gcc >= 4.8, dynamic library" diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk index 3c62285..ad4f3c4 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