Files
buildroot/package/bcc/bcc.mk
T
Julien Olivain b5a0f58640 package/bcc: bump version to 0.31.0
For a change log since 0.29.1, see:
https://github.com/iovisor/bcc/blob/v0.31.0/debian/changelog

This commit also changes BCC_SITE_METHOD to "git". This is because the
upstream source archive name does not contain the version. It is
always named "bcc-src-with-submodule.tar.gz" in all releases. If using
the https _SITE_METHOD, bumping the version will not download the new
version if the directory BR2_DL_DIR contains an old one, with the same
name. Since the upstream repository uses git submodules, this commit
also adds "BCC_GIT_SUBMODULES = YES".

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-08-19 13:53:20 +02:00

54 lines
1.5 KiB
Makefile

################################################################################
#
# bcc
#
################################################################################
BCC_VERSION = v0.31.0
BCC_SITE = https://github.com/iovisor/bcc
BCC_SITE_METHOD = git
BCC_GIT_SUBMODULES = YES
BCC_LICENSE = Apache-2.0
BCC_LICENSE_FILES = LICENSE.txt
BCC_INSTALL_STAGING = YES
BCC_DEPENDENCIES = \
clang \
elfutils \
flex \
host-bison \
host-flex \
host-python-setuptools \
host-zip \
llvm \
python3
# ENABLE_LLVM_SHARED=ON to use llvm.so - we only support shared libs
# Force REVISION otherwise bcc will use git describe to generate a version number.
BCC_CONF_OPTS = \
-DENABLE_LLVM_SHARED:BOOL=ON \
-DREVISION:STRING=$(BCC_VERSION) \
-DENABLE_CLANG_JIT:BOOL=ON \
-DENABLE_MAN:BOOL=OFF \
-DENABLE_EXAMPLES:BOOL=OFF \
-DPY_SKIP_DEB_LAYOUT:BOOL=ON
define BCC_LINUX_CONFIG_FIXUPS
# Enable kernel support for eBPF
$(call KCONFIG_ENABLE_OPT,CONFIG_BPF)
$(call KCONFIG_ENABLE_OPT,CONFIG_BPF_SYSCALL)
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_CLS_BPF)
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_ACT_BPF)
$(call KCONFIG_ENABLE_OPT,CONFIG_BPF_JIT)
# [for Linux kernel versions 4.1 through 4.6]
$(call KCONFIG_ENABLE_OPT,CONFIG_HAVE_BPF_JIT)
# [for Linux kernel versions 4.7 and later]
$(call KCONFIG_ENABLE_OPT,CONFIG_HAVE_EBPF_JIT)
$(call KCONFIG_ENABLE_OPT,CONFIG_BPF_EVENTS)
# [for Linux kernel versions 5.2 and later]
$(call KCONFIG_ENABLE_OPT,CONFIG_IKHEADERS)
# bcc needs debugfs at runtime
$(call KCONFIG_ENABLE_OPT,CONFIG_DEBUG_FS)
endef
$(eval $(cmake-package))