blob: eac267041566f0bd847e45514f88780bcc16c6a5 [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001SUMMARY = "Fast Log processor and Forwarder"
2DESCRIPTION = "Fluent Bit is a data collector, processor and \
3forwarder for Linux. It supports several input sources and \
4backends (destinations) for your data. \
5"
6
7HOMEPAGE = "http://fluentbit.io"
8BUGTRACKER = "https://github.com/fluent/fluent-bit/issues"
9
10LICENSE = "Apache-2.0"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
12SECTION = "net"
13
14SRC_URI = "http://fluentbit.io/releases/1.3/fluent-bit-${PV}.tar.gz \
15 file://jemalloc.patch \
16 file://cross-build-init-system-detection.patch \
17 file://builtin-nan.patch \
Brad Bishop0e2770c2020-01-21 07:31:46 -050018 file://0001-ppc-Fix-signature-for-co_create-API.patch \
Andrew Geisslerac970dd2021-02-12 15:32:45 -060019 file://0001-bin-fix-SIGSEGV-caused-by-using-flb_free-instead-of-.patch \
20 file://0002-parser-Fix-SIGSEGV-caused-by-using-flb_free-instead-.patch \
21 "
Brad Bishope42b3e32020-01-15 22:08:42 -050022SRC_URI[md5sum] = "6eae6dfd0a874e5dd270c36e9c68f747"
23SRC_URI[sha256sum] = "e037c76c89269c8dc4027a08e442fefd2751b0f1e0f9c38f9a4b12d781a9c789"
24
25S = "${WORKDIR}/fluent-bit-${PV}"
26DEPENDS = "zlib bison-native flex-native"
Andrew Geisslerac970dd2021-02-12 15:32:45 -060027DEPENDS += "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
28
Brad Bishope42b3e32020-01-15 22:08:42 -050029DEPENDS_append_libc-musl = " fts "
30
31INSANE_SKIP_${PN}-dev += "dev-elf"
32
Andrew Geissler4b7c1152020-11-30 19:55:29 -060033LTO = ""
34
Brad Bishope42b3e32020-01-15 22:08:42 -050035# Use CMake 'Unix Makefiles' generator
36OECMAKE_GENERATOR ?= "Unix Makefiles"
37
38# Fluent Bit build options
39# ========================
40
41# Host related setup
42EXTRA_OECMAKE += "-DGNU_HOST=${HOST_SYS} -DFLB_ALL=ON -DFLB_TD=1"
43
44# Disable LuaJIT and filter_lua support
45EXTRA_OECMAKE += "-DFLB_LUAJIT=Off -DFLB_FILTER_LUA=Off "
46
47# Disable Library and examples
48EXTRA_OECMAKE += "-DFLB_SHARED_LIB=Off -DFLB_EXAMPLES=Off "
49
50EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES','systemd','-DFLB_SYSTEMD=On','',d)}"
51
Andrew Geissler82c905d2020-04-13 13:39:40 -050052EXTRA_OECMAKE_append_riscv64 = " -DFLB_DEPS='atomic'"
Andrew Geissler4b7c1152020-11-30 19:55:29 -060053EXTRA_OECMAKE_append_riscv32 = " -DFLB_DEPS='atomic'"
Andrew Geissler82c905d2020-04-13 13:39:40 -050054
Brad Bishope42b3e32020-01-15 22:08:42 -050055# Kafka Output plugin (disabled by default): note that when
56# enabling Kafka output plugin, the backend library librdkafka
57# requires 'openssl' as a dependency.
58#
59# DEPENDS += "openssl "
60# EXTRA_OECMAKE += "-DFLB_OUT_KAFKA=On "
61
Andrew Geissler89770b02020-06-13 10:40:47 -050062inherit cmake systemd
Brad Bishope42b3e32020-01-15 22:08:42 -050063
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050064CFLAGS += "-fcommon"
65
Brad Bishope42b3e32020-01-15 22:08:42 -050066SYSTEMD_SERVICE_${PN} = "td-agent-bit.service"
67TARGET_CC_ARCH_append = " ${SELECTED_OPTIMIZATION}"