|
| 1 | +# Fluent Bit - Yocto / Bitbake |
| 2 | +# ============================ |
| 3 | +# The following Bitbake package the latest Fluent Bit stable release. |
| 4 | + |
| 5 | +SUMMARY = "Fast Log processor and Forwarder" |
| 6 | +DESCRIPTION = "Fluent Bit is a data collector, processor and \ |
| 7 | +forwarder for Linux. It supports several input sources and \ |
| 8 | +backends (destinations) for your data. \ |
| 9 | +" |
| 10 | + |
| 11 | +HOMEPAGE = "http://fluentbit.io" |
| 12 | +BUGTRACKER = "https://github.com/fluent/fluent-bit/issues" |
| 13 | + |
| 14 | +LICENSE = "Apache-2.0" |
| 15 | +LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" |
| 16 | +SECTION = "net" |
| 17 | + |
| 18 | +PR = "r0" |
| 19 | +PV = "2.2.0" |
| 20 | + |
| 21 | +SRCREV = "v${PV}" |
| 22 | +SRC_URI = "git://github.com/fluent/fluent-bit.git;nobranch=1" |
| 23 | + |
| 24 | +S = "${WORKDIR}/git" |
| 25 | +DEPENDS = "zlib bison-native flex-native" |
| 26 | +INSANE_SKIP_${PN}-dev += "dev-elf" |
| 27 | + |
| 28 | +# Use CMake 'Unix Makefiles' generator |
| 29 | +OECMAKE_GENERATOR ?= "Unix Makefiles" |
| 30 | + |
| 31 | +# Fluent Bit build options |
| 32 | +# ======================== |
| 33 | + |
| 34 | +# Host related setup |
| 35 | +EXTRA_OECMAKE += "-DGNU_HOST=${HOST_SYS} " |
| 36 | + |
| 37 | +# Disable LuaJIT and filter_lua support |
| 38 | +EXTRA_OECMAKE += "-DFLB_LUAJIT=Off -DFLB_FILTER_LUA=Off " |
| 39 | + |
| 40 | +# Disable Library and examples |
| 41 | +EXTRA_OECMAKE += "-DFLB_SHARED_LIB=Off -DFLB_EXAMPLES=Off " |
| 42 | + |
| 43 | +# Systemd support (optional) |
| 44 | +DEPENDS += "systemd" |
| 45 | +EXTRA_OECMAKE += "-DFLB_IN_SYSTEMD=On " |
| 46 | + |
| 47 | +# Kafka Output plugin (disabled by default): note that when |
| 48 | +# enabling Kafka output plugin, the backend library librdkafka |
| 49 | +# requires 'openssl' as a dependency. |
| 50 | +# |
| 51 | +# DEPENDS += "openssl " |
| 52 | +# EXTRA_OECMAKE += "-DFLB_OUT_KAFKA=On " |
| 53 | + |
| 54 | +inherit cmake systemd |
| 55 | + |
| 56 | +SYSTEMD_SERVICE_${PN} = "fluent-bit.service" |
| 57 | +TARGET_CC_ARCH_append = " ${SELECTED_OPTIMIZATION}" |
0 commit comments