From patchwork Mon May 6 08:15:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095709 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.137; helo=fraxinus.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="SbXeSdCb"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44yFtf1FdFz9s9y for ; Mon, 6 May 2019 18:16:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A5E5785A00; Mon, 6 May 2019 08:16:08 +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 mOYJo_QHbRcS; Mon, 6 May 2019 08:16:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 097E4855CB; Mon, 6 May 2019 08:16:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 700581BF868 for ; Mon, 6 May 2019 08:16:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4E81624723 for ; Mon, 6 May 2019 08:16:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sqP6ZoWIbNMH for ; Mon, 6 May 2019 08:16:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by silver.osuosl.org (Postfix) with ESMTPS id D078B2420F for ; Mon, 6 May 2019 08:15:58 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id f7so5716733wrq.1 for ; Mon, 06 May 2019 01:15:58 -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=SbXeSdCbtW2cHXDzxaYVFg41yZxE9UaYeAgJi0C6o1rkFkKadqvwo4YlC6X3LqVQFk DK5vWaL1vgKDX07LtqLnnOTH0y5DMlIBBdmNmUfBva+vWJSv7AA6ELN2y6s9fb1J4tXf MTImKl869NHxV/AzqiIJ293m+tAW+n7CxEmWL7PSCj5UZt+n5BDFylD5Zy952kXchjZi Kc3ttG3vVSXAEPmK63IWWitZl2PSPXLQqWQoKjGKWMDlfjTGBD4gUiix7N2IXP0KHdy/ +yY5d84ucZhMr7LgVmzzkOCyg4cZPtV6Y0UUJTNb7vmRP2rSifyc//sPperkWsK0RKG3 09vQ== 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=C8GDmCMjUY3t+79cARNKadM1iTK3hEYsPBBSch647jJDp1WnEOwClJ1ihcGhchBmN/ Xtt0WhOEwliY7zOtdY7VpZzrvE9rYS4mPvNdz1PbiztZYfPXtbrf2s9ErxIz6ikQzPrn Mr4JVcHJwkHP/QMGWuQ4f4VnyxsLbuZhHQupSSbcD743av+I28WHGaBybMRlWK3Ul+8O A0uk8mfXgi1MUYtaDDlVBdcTLoNlYl8IHir8TO8qtzhSyPxqFCdF42u4gZVLfJRm9lgI +P33D2zYr96sktVOjBL1TI4peEpE6khAj+w91pkkQ9YEjOhCyPSCorcjsf7l/DL/F2S5 77fA== X-Gm-Message-State: APjAAAWq3dKBaVca+mB3sqDB6pdtfHda0zACrvzwQqvmAGPuMyfhcC9b q5iXZh2brJH///N63vjoox8tyXsdiK4= X-Google-Smtp-Source: APXvYqwvNaP/O6pSZDK76CpJJ1eEC78NUm8oXlJwQuWClfp5vjpk70iFFlm4UtlPcQ+Cw4FPUdtzOw== X-Received: by 2002:adf:f108:: with SMTP id r8mr6435444wro.221.1557130557380; Mon, 06 May 2019 01:15:57 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:56 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:46 +0200 Message-Id: <1557130548-6267-6-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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