From 9351170566354898a97088f280f180471ffc4c39 Mon Sep 17 00:00:00 2001 From: Leo Yan Date: Wed, 26 Feb 2020 03:02:20 +0000 Subject: BCC: Upgrade to v0.13.0 Since Clang has been upgraded to 10.0.0, it leads to BCC building failure which is caused by LLVM functions definition mismatching. This patch upgrades BCC to v0.13.0 so can support Clang 10.0.0. Signed-off-by: Leo Yan --- recipes-devtools/bcc/bcc_0.13.0.bb | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 recipes-devtools/bcc/bcc_0.13.0.bb (limited to 'recipes-devtools/bcc/bcc_0.13.0.bb') diff --git a/recipes-devtools/bcc/bcc_0.13.0.bb b/recipes-devtools/bcc/bcc_0.13.0.bb new file mode 100644 index 0000000..2a346c1 --- /dev/null +++ b/recipes-devtools/bcc/bcc_0.13.0.bb @@ -0,0 +1,40 @@ +SUMMARY = "BPF Compiler Collection (BCC)" +HOMEPAGE = "https://github.com/iovisor/bcc" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e" + +DEPENDS += "bison-native \ + ninja-native \ + elfutils-native \ + flex-native \ + ${MLPREFIX}elfutils \ + ${MLPREFIX}binutils \ + ${MLPREFIX}flex \ + luajit \ + clang \ + " + +RDEPENDS_${PN} += "bash python3 python3-core" + +SRC_URI = "git://github.com/iovisor/bcc \ + file://0001-Allow-to-build-with-OE-LLVM-cross-compiled-package.patch \ + file://0001-BCC-Use-python-3.patch \ + " +SRCREV = "942227484d3207f6a42103674001ef01fb5335a0" + +S = "${WORKDIR}/git" + +inherit cmake + +EXTRA_OECMAKE = " \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_LLVM_SHARED=ON \ + -DENABLE_CLANG_JIT=ON \ + -DENABLE_MAN=OFF \ + -DLLVM_PACKAGE_VERSION=${LLVMVERSION} \ + -DPYTHON_CMD=python3 \ +" + +FILES_${PN} += "${libdir}/python*/dist-packages" + +COMPATIBLE_HOST = "(x86_64.*|aarch64.*|powerpc64.*)-linux" -- cgit v1.2.3-54-g00ecf