From patchwork Thu Aug 13 13:02:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1344274 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=pISXMnCJ; 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 4BS6DX55DBz9sRK for ; Thu, 13 Aug 2020 23:02:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 32709885D9; Thu, 13 Aug 2020 13:02:35 +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 OTwlU3+IQ91z; Thu, 13 Aug 2020 13:02:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 660EC88379; Thu, 13 Aug 2020 13:02:34 +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 DB6B41BF3ED for ; Thu, 13 Aug 2020 13:02:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3C1E788213 for ; Thu, 13 Aug 2020 13:02:30 +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 HQIRueDy87zg for ; Thu, 13 Aug 2020 13:02:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id BB57388152 for ; Thu, 13 Aug 2020 13:02:27 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id a14so5207953wra.5 for ; Thu, 13 Aug 2020 06:02:27 -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=bVkIZUM9TSEQ25s41FzOhC4Lbhsvb6FtAZd7z1toJ8o=; b=pISXMnCJh9F+nOHNqMETQPXEp/bmfKbOn56exKbH9n3quaCsW8TdHF4bmV3T0IZxI1 rnxcSeQdD3BZrfgeTJ86uJXNLx/zsNQtMUrz/aq6ji9PLNzQRKGXZJyhQOAd7sor80zr yc6ANPraUQXtFnx4Kt3E3PXjzb7ZVMsJyzd0MQmKZFH7Lc+fcteF/an6Xe7j9Frc8YRI ezmljDMpIj/9EJMZG5k9qthmIOqiAXj65IioNghx0NO7dYnX1GqOMM8oZ2qvWniumwJh jfGknPdDWoLokOPvz59Wbf2aJA7QkhKUMBUMwl+PPzzZTCEEU3WXNQH6CFjMzjk3N4fs /oMw== 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=bVkIZUM9TSEQ25s41FzOhC4Lbhsvb6FtAZd7z1toJ8o=; b=H4AqAWjIA79MobZ27HpTW1G5Cffa8r/YQnHR/5z0E+mjQGxuD6obJtHoVnIp7+cY9w omcph9dsiBWJAqKbHhDLv0iLxdvyyyjdze8y7UQ5KIhYfwVCdmcVa/+mfS8UTSAyTs5h 5kWgJXMDMYA/s0itA1lueoQM41AIZmV9Xc1oC3gajDktRA2+3SCyzTPJ22618Szx8yL8 Gwnb8syHEBcjfeiRnaH6kzAMl+xvQ+QS5UGRi2JYPCXOqTAonpTK9JgwhCrIZFhO+f3O aJWO/cpLe3c86k1rmrPsmuDeaB1ojlH4fJOnttzPqCkx2v7PpFgQOVtcOQI8gb+yZECd xCoQ== X-Gm-Message-State: AOAM531C6oXE4gAbabfiZl5IgKG6Z6V+u7L0Uqf/cK0kgrn3l0h0uI+l adsFEsx03jHCkF3n/Z+XsO0g6T2yvCk= X-Google-Smtp-Source: ABdhPJyOFFpSDLlA9UbO/CNzUJnmuhBXRsLs7lPtKMyTYiH/vVE3fFUvygzJ86n7y4ZJu+Gz/sW9rA== X-Received: by 2002:adf:ef4c:: with SMTP id c12mr3783284wrp.44.1597323744685; Thu, 13 Aug 2020 06:02:24 -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 r16sm11517430wrr.13.2020.08.13.06.02.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Aug 2020 06:02:24 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 13 Aug 2020 15:02:19 +0200 Message-Id: <1597323740-20153-2-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597323740-20153-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1597323740-20153-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" 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