kumquat-buildroot/package/bpftrace/bpftrace.mk
Qais Yousef 338acb27ff package/bpftrace: new package
bpftrace is a high-level tracing language for Linux enhanced Berkeley
Packet Filter (eBPF) available in recent Linux kernels (4.1 and later).

Only tested on x86_64.

Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
Cc: Qais Yousef <qyousef@layalina.io>
Signed-off-by: Mat Martineau <martineau@kernel.org>
[Arnout:
 - Remove duplicate 'depends on BR2_TOOLCHAIN_HAS_THREADS'
 - Fix Config.in comment text and dependencies
 - Order dependencies alphabetically
]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-04-03 23:09:13 +02:00

35 lines
742 B
Makefile

################################################################################
#
# bpftrace
#
################################################################################
BPFTRACE_VERSION = 0.19.1
BPFTRACE_SITE = $(call github,iovisor,bpftrace,v$(BPFTRACE_VERSION))
BPFTRACE_LICENSE = Apache-2.0
BPFTRACE_LICENSE_FILES = LICENSE
BPFTRACE_DEPENDENCIES = \
bcc \
bzip2 \
cereal \
elfutils \
host-bison \
host-flex \
libbpf \
llvm \
xz
# libbfd, libopcodes
ifeq ($(BR2_PACKAGE_BINUTILS),y)
BPFTRACE_DEPENDENCIES += binutils
endif
BPFTRACE_CONF_OPTS += \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DENABLE_MAN:BOOL=OFF \
-DINSTALL_TOOL_DOCS:BOOL=OFF \
-DUSE_SYSTEM_BPF_BCC:BOOL=ON
$(eval $(cmake-package))