From patchwork Sun Jan 13 21:21:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1024156 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LZOzjzI/"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43d8g01QGvz9s9h for ; Mon, 14 Jan 2019 08:21:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2C45322836; Sun, 13 Jan 2019 21:21:29 +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 Ti5jRzBuY8Sm; Sun, 13 Jan 2019 21:21:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9D01321574; Sun, 13 Jan 2019 21:21:26 +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 631CA1BF383 for ; Sun, 13 Jan 2019 21:21:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6041681CBE for ; Sun, 13 Jan 2019 21:21:26 +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 rjMtxXfbYBbG for ; Sun, 13 Jan 2019 21:21:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8173D81B79 for ; Sun, 13 Jan 2019 21:21:25 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id m22so7042173wml.3 for ; Sun, 13 Jan 2019 13:21:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=V0B8Lkg6EErlp824Y2wq9tybzoP6OjYgA8mcGN3hyNY=; b=LZOzjzI/dQxXKo3BzGy8qx/YSt5CvwCt0If5GuFrK8JorD/Pgg0YJd0jZ1/N/4NBOV u46s0irFuayFj/EzkW/fVU1C1diChH6NSOla95lDEHojeInes/AEWvHiyDju0OexShzn e3QL/1N5mBJfTEeZmnrvYc/EVpT/Yp7kKp+oqDqSbdxZoXuHf9N3lJ+dQlGd27tAYiou 3Yr/9y2PWqUOBItcJx5Oea0R/vk3dXDwjh52pHdkUbXebsjqHXWmfvSOsUb+pw/DxdGX jvWcRwTM6+e8nQ2AhOzA0Es6qtt240cETO5CH7fstvIw9BHqZf05wGg/eTrK8PqGQHuY 38Bg== 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; bh=V0B8Lkg6EErlp824Y2wq9tybzoP6OjYgA8mcGN3hyNY=; b=Av6xFH0+KSt8fW1akm/niywfOXkLdO39xpEWkoUNUfObJbcGNIQ7WUsJ8soqqTb0tX v7yXrY9gcgVpCILZo+CWRdViqOXxDD/uchJdqOQg1gW/ghOX0gmWUGzr0OoJSOO5qIzc +5405e0RsINtPjE5IUuhqrN+e3SZcS8C0cD0Mwybixx9xR4Vmmqbx7NQPteaJT2UQNMf tWZsxqhlRENfOLpxcgKPiLfXzwoVxVLVz1f/QtoD8bF2RGfif4YN+veXdeyWP+kkijGD eD0bb4/pbJ3B3CBfqcvRzvM3AXuV7RweQjZapmlhB/S2REarH3hKjjWmGcAqUixr6dzC 7vxA== X-Gm-Message-State: AJcUukdGocn6rpuoyuYofWaxhWA6dya/UEWypdPEzMINveA3HoHjQOZM QaiXQjjMz8F6xZCrGJ7CW+LH/TzX X-Google-Smtp-Source: ALg8bN5Pr/JBUe3vunq+47DVDhUgK7dcDxnLe2GEI+hmliwOfGHp4DfkGDdcK5yWTIxd0xfSa4K97Q== X-Received: by 2002:a1c:e910:: with SMTP id q16mr9579922wmc.68.1547414483280; Sun, 13 Jan 2019 13:21:23 -0800 (PST) Received: from adeos.home (2a01cb000577e4007362e7db4e8430b1.ipv6.abo.wanadoo.fr. [2a01:cb00:577:e400:7362:e7db:4e84:30b1]) by smtp.gmail.com with ESMTPSA id o64sm24514695wmo.47.2019.01.13.13.21.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Jan 2019 13:21:22 -0800 (PST) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 13 Jan 2019 22:21:17 +0100 Message-Id: <20190113212118.14512-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 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: 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 83e94660eb..72d920e226 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 613f5f5d47..9999389651 100644 --- a/package/llvm/llvm.mk +++ b/package/llvm/llvm.mk @@ -54,6 +54,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 From patchwork Sun Jan 13 21:21:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1024157 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cGqqyRZI"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43d8g33gh9z9s9h for ; Mon, 14 Jan 2019 08:21:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 00CE9214F6; Sun, 13 Jan 2019 21:21:34 +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 JwODTlvdU7GI; Sun, 13 Jan 2019 21:21:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 4CA49230FD; Sun, 13 Jan 2019 21:21:29 +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 2874C1BF383 for ; Sun, 13 Jan 2019 21:21:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 25C5F862B9 for ; Sun, 13 Jan 2019 21:21:28 +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 r9kxYZEJP6RH for ; Sun, 13 Jan 2019 21:21:26 +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 hemlock.osuosl.org (Postfix) with ESMTPS id 241618621E for ; Sun, 13 Jan 2019 21:21:26 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id l9so20681964wrt.13 for ; Sun, 13 Jan 2019 13:21:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=d2KyMlSsAw9dq34H9xUIhupOLD7IljrBQO3mM9mYyJA=; b=cGqqyRZI1QT3Dr2mb5RPnXAM1Fp+N6F8nR1We2DUwEQpL+Fuq6IDn8PaEfyzMipg8A s34icFB/aaVUV48O3zTHFG0AYJTg990tJ2QLXhYsj5ANk9vu8GHtIqmWCMK8OrrFCCvu 56eYn/SL4w02skW/hEmMm2oIUG/WZ+6082sxntHjg1ueBEVuEtuBT1ZMo+MnA1oUwUoz UucQzY43EcBYoFNj8aQch+u84j5zc7yya66DPU+4fUf6XKW/Zaj2hb6UCVPLI6S1GSkD Z1Vk5ULMNzuiIMKSkdW/qoX5LrHrQnc24o8rp6BSn0RTZ59S6/63D6iCbdtCn9ABjcek 3M/w== 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=d2KyMlSsAw9dq34H9xUIhupOLD7IljrBQO3mM9mYyJA=; b=RFGcqtHdd8jJDdglIkL5mFJnbQfwdhG0uOF87TuG9sztSiMAuOveESUT2nI777vChH 6Qynkk1TVCMvfMzBDTN0gggjGLFAJaiosD+NiLaKspXGA9qHaswsDLO2FQdqBFk3Ty1p RrCaEsBOJ2MVBqQP97feDTQqw3Cc2oCMoEztogBz2/v+buVdOqLmDlzl6+XV0MKlznel 11NEEWlErLM56llNu5CEGMQfeKrdwK7R9vqfYM79FTikDWkk2r3JTpll2Bf8vN7SkCZJ 0ltNz9jk92jFwh1aoJmpo8XbSB/B6WM10pknmT3iFahArgopxMcRX/UXM8OfAJLJ5nRw e/6Q== X-Gm-Message-State: AJcUukfD8pMUNV5m6iJi1LAInbMR8t7a18phdFBGzkrf0WF3KcRDF6fV ZfmpY8VpkPb9wefZ1WptvlHMDiJf X-Google-Smtp-Source: ALg8bN5lSMfF2LwMCH51YVUzKB1sV+jZfkp+hRw/fhhd5gEU0sb9mB4r7qOA/zUGN+jVAgbG/AZJ9Q== X-Received: by 2002:adf:a357:: with SMTP id d23mr22724013wrb.195.1547414484052; Sun, 13 Jan 2019 13:21:24 -0800 (PST) Received: from adeos.home (2a01cb000577e4007362e7db4e8430b1.ipv6.abo.wanadoo.fr. [2a01:cb00:577:e400:7362:e7db:4e84:30b1]) by smtp.gmail.com with ESMTPSA id o64sm24514695wmo.47.2019.01.13.13.21.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Jan 2019 13:21:23 -0800 (PST) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 13 Jan 2019 22:21:18 +0100 Message-Id: <20190113212118.14512-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20190113212118.14512-1-romain.naour@gmail.com> References: <20190113212118.14512-1-romain.naour@gmail.com> Subject: [Buildroot] [PATCH 2/2] package/bcc: new package 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 MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Romain Naour Before using bcc, you need to copy the kernel source code to "/lib/module//build" on the target. That's because the clang frontend build eBPF code at runtime. There are some issues with this frontend due to the hardcoded architecture support and the use of GNU tuple (x86_64-unknown-linux-gnu). That's why the bcc package dependency is limited to Glibc toolchain. bcc needs tracing support, at least CONFIG_KPROBES, CONFIG_BPFILTER and CONFIG_BPF_JIT. See [1] for details. bcc needs BPF target support in llvm libraries. Add a patch disabling man pages. [1] https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md Signed-off-by: Romain Naour Cc: Jugurtha BELKALEM --- The needs of kernel sources on the target is anoying for small devices. At least, I'm able to complete the bcc tutorial [1] on my x86_64 target. [1] https://github.com/iovisor/bcc/blob/master/docs/tutorial.md --- DEVELOPERS | 1 + package/Config.in | 1 + ...CMake-Allow-to-disable-building-man-pages.patch | 35 +++++++++++++++ package/bcc/Config.in | 50 ++++++++++++++++++++++ package/bcc/bcc.hash | 3 ++ package/bcc/bcc.mk | 23 ++++++++++ 6 files changed, 113 insertions(+) create mode 100644 package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch create mode 100644 package/bcc/Config.in create mode 100644 package/bcc/bcc.hash create mode 100644 package/bcc/bcc.mk diff --git a/DEVELOPERS b/DEVELOPERS index 0d4c4f1d60..f5dc078c69 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1831,6 +1831,7 @@ F: package/vnstat/ N: Romain Naour F: package/aubio/ +F: package/bcc/ F: package/bullet/ F: package/darktable/ F: package/efl/ diff --git a/package/Config.in b/package/Config.in index 8d05303472..434427f455 100644 --- a/package/Config.in +++ b/package/Config.in @@ -79,6 +79,7 @@ menu "Compressors and decompressors" endmenu menu "Debugging, profiling and benchmark" + source "package/bcc/Config.in" source "package/blktrace/Config.in" source "package/bonnie/Config.in" source "package/cache-calibrator/Config.in" diff --git a/package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch b/package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch new file mode 100644 index 0000000000..c5c87d52e9 --- /dev/null +++ b/package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch @@ -0,0 +1,35 @@ +From a99f097aedbf964356e62c0c4bba1257f108c3eb Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Fri, 7 Dec 2018 22:36:21 +0100 +Subject: [PATCH] CMake: Allow to disable building man pages + +Signed-off-by: Romain Naour +--- + CMakeLists.txt | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bb3f53b9..5e95d555 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,6 +19,7 @@ include(cmake/FindCompilerFlag.cmake) + option(ENABLE_LLVM_SHARED "Enable linking LLVM as a shared library" OFF) + option(ENABLE_CLANG_JIT "Enable Loading BPF through Clang Frontend" ON) + option(ENABLE_USDT "Enable User-level Statically Defined Tracing" ON) ++option(ENABLE_MAN "Build man pages" ON) + CMAKE_DEPENDENT_OPTION(ENABLE_CPP_API "Enable C++ API" ON "ENABLE_USDT" OFF) + + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +@@ -88,7 +89,9 @@ add_subdirectory(src) + add_subdirectory(introspection) + if(ENABLE_CLANG_JIT) + add_subdirectory(examples) ++if(ENABLE_MAN) + add_subdirectory(man) ++endif(ENABLE_MAN) + add_subdirectory(tests) + add_subdirectory(tools) + endif(ENABLE_CLANG_JIT) +-- +2.14.5 + diff --git a/package/bcc/Config.in b/package/bcc/Config.in new file mode 100644 index 0000000000..7bc681e639 --- /dev/null +++ b/package/bcc/Config.in @@ -0,0 +1,50 @@ +config BR2_PACKAGE_BCC + bool "bcc" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_GLIBC # hardcode GNU tuple (x86_64-unknown-linux-gnu) + depends on BR2_LINUX_KERNEL # needs kernel sources on the target + depends on BR2_HOST_GCC_AT_LEAST_4_8 # clang + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # clang + depends on BR2_TOOLCHAIN_HAS_THREADS # clang + depends on BR2_INSTALL_LIBSTDCPP # clang + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # clang + depends on !BR2_STATIC_LIBS # clang, luajit + depends on BR2_USE_WCHAR # clang + select BR2_PACKAGE_CLANG + select BR2_PACKAGE_ELFUTILS + select BR2_PACKAGE_FLEX # needs FlexLexer.h + select BR2_PACKAGE_LLVM_BPF + select BR2_PACKAGE_LUAJIT + help + BPF Compiler Collection (BCC) + + BCC is a toolkit for creating efficient kernel tracing and + manipulation programs, and includes several useful tools and + examples. It makes use of extended BPF (Berkeley Packet + Filters), formally known as eBPF, a new feature that was + first added to Linux 3.15. Much of what BCC uses requires + Linux 4.1 and above. + + Note: Before using bcc, you need to copy the kernel source + code to the target. By default bcc use: + "/lib/module//build". That's because the + clang frontend build eBPF code at runtime. + + https://github.com/iovisor/bcc + +comment "bcc needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL + +comment "bcc needs a glibc toolchain w/ wchar, threads, C++, gcc >= 4.8, host gcc >= 4.8, dynamic library" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_LINUX_KERNEL + depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_TOOLCHAIN_HAS_THREADS \ + || !BR2_INSTALL_LIBSTDCPP || !BR2_HOST_GCC_AT_LEAST_4_8 \ + || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || BR2_STATIC_LIBS \ + || !BR2_USE_WCHAR + +comment "bcc needs a toolchain not affected by GCC bug 64735" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_LINUX_KERNEL + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735 diff --git a/package/bcc/bcc.hash b/package/bcc/bcc.hash new file mode 100644 index 0000000000..19eccb37ca --- /dev/null +++ b/package/bcc/bcc.hash @@ -0,0 +1,3 @@ +# locally calculated +sha256 269949a47f9ed2ff01b5ebca20ec4a52341f7ff14b033b9dc1669b72a87af042 bcc-v0.8.0.tar.gz +sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE.txt diff --git a/package/bcc/bcc.mk b/package/bcc/bcc.mk new file mode 100644 index 0000000000..401727c68a --- /dev/null +++ b/package/bcc/bcc.mk @@ -0,0 +1,23 @@ +################################################################################ +# +# bcc +# +################################################################################ + +BCC_VERSION = v0.8.0 +BCC_SITE = $(call github,iovisor,bcc,$(BCC_VERSION)) +BCC_LICENSE = Apache-2.0 +BCC_LICENSE_FILES = LICENSE.txt +# libbcc.so and libbpf.so +BCC_INSTALL_STAGING = YES + +BCC_DEPENDENCIES = host-bison host-flex clang elfutils flex llvm luajit + +# ENABLE_LLVM_SHARED=ON to use llvm.so. +# Force REVISION otherwise bcc will use git describe to generate a version number. +BCC_CONF_OPTS = -DENABLE_LLVM_SHARED=ON \ + -DREVISION=$(BCC_VERSION) \ + -DENABLE_CLANG_JIT=ON \ + -DENABLE_MAN=OFF + +$(eval $(cmake-package))