From patchwork Thu May 2 08:20:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094058 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.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.b="z5nj5+Kp"; 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 44vp9Q4pWwz9s9y for ; Thu, 2 May 2019 18:20:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 618EE88047; Thu, 2 May 2019 08:20:22 +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 b19j-NgNTgYC; Thu, 2 May 2019 08:20:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 42E6688026; Thu, 2 May 2019 08:20:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 23E511BF96A for ; Thu, 2 May 2019 08:20:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2094088020 for ; Thu, 2 May 2019 08:20:19 +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 jKk77+jBUONC for ; Thu, 2 May 2019 08:20:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8A27D88007 for ; Thu, 2 May 2019 08:20:18 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id p21so1501034wmc.0 for ; Thu, 02 May 2019 01:20:18 -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=l2Nt4T2AB6XsJ0VswrPqA+KkezJsOVl/osHsiUSfgac=; b=z5nj5+Kp5aLW4Qqw5nw9r44PH8Hp5X+XI7OWtmms03RF/lgMXk4xScG4qPcvFJ7EFr z6oXPlfayWXilzo4DxKwgtimNjEnoarr/txGGO30Op4E7xgTKW3+bQPDqXo4uCCHwUmK 6Xn9hI0snXeQ5rwOi7xTydCp07AXVvElFwO6rvhfLxy+Q/vuBhHNr3jDHAIsly41A0yv I+Xd673XF/8h3OFKcyrLrFe1caOcRvWTsj+47MOQrExdWM/gvRwZAUTZTP3pQeiyN6hz l9ii256kzo1ahf2ULSd7nOHbeVxvfugcJlt66luF2Bv8Sb46i4GBEI/fBPBoiAO2tr6W NCOw== 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=l2Nt4T2AB6XsJ0VswrPqA+KkezJsOVl/osHsiUSfgac=; b=tXgIgQiuyIo/m14u2bvF+KQ2mkXCfJsxPVaaTWgCzpYe/H8K7QVrupFjdFaaM2SKJE BMVPWpVbl4jOjKFT8mZeyKjx+sy8k8HtOdkV0Ue8AtZz6in1c9guqNOnSUMXv8sd8HcK v5S8/4yGZEoCsmbxeMSnIIdCNnDTb58XXwmAN0MSeZhiZWd4W6ztmcUA+DgmmcGfbUFY 5vm8+7qYgND//KhIACMEb8MZmhn5hyhHYiaYDd21We5yJDX5iVaQov6wHpBVfOcmdkq8 ytIKz+g4jeDPhDlk7embIGIOj0h49nr12F5UqdjgUeUD3zlyndzBaMo+AG1do8Xu0kdR zNCA== X-Gm-Message-State: APjAAAUc/XtyXDG7dK8mDQP1XvMypdEk/VoXUTxT2V5cFI3KOdTF1kl3 MkeRJoMWENoUVrmHejyJV9AV327dPl4= X-Google-Smtp-Source: APXvYqyZ4GSW74CrT2A0p1LMYyMQaPmq8GrC+uMCKHWKodW2oDVAE+km88zlUzpI462R9eA+XIGNOw== X-Received: by 2002:a7b:cf0c:: with SMTP id l12mr1334824wmg.132.1556785217081; Thu, 02 May 2019 01:20:17 -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 b11sm13251303wmh.29.2019.05.02.01.20.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 01:20:16 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 10:20:05 +0200 Message-Id: <1556785210-18237-3-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556785210-18237-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556785210-18237-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH 2/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: 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 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