forked from torizon/meta-toradex-torizon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fluentbit: add Torizon specific customization on a separate bbappend
In this append we install Torizon specific configurations and we correctly configure the build parameters. Due to the fact that meta-openembedded is using PACKAGECONFIG, some unused configs are being set by default to Off. This is causing some build issue on fluentbit, and I believe it's happening because some of the configs PACKAGECONFIG are explicitly turning Off might be On by default. So in order to fix this issue, and to make this fluent-bit build closer to what we had, I've copied to this .bbappend the EXTRA_OECMAKE configs we had, and removed the extra ones added by PACKAGECONFIG. This way we end up with the same flags in EXTRA_OECMAKE we had before. Related-to: 3476 Signed-off-by: Eduardo Ferreira <[email protected]>
- Loading branch information
1 parent
895fb29
commit a3625de
Showing
1 changed file
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
|
||
DEPENDS += "libyaml" | ||
|
||
SRC_URI += "\ | ||
file://fluent-bit.service \ | ||
file://fluent-bit.conf \ | ||
file://emmc-health \ | ||
file://custom-empty.conf \ | ||
" | ||
|
||
PACKAGECONFIG = "" | ||
|
||
# Fluent Bit build options | ||
# ======================== | ||
# Disable Debug symbols | ||
EXTRA_OECMAKE += "-DFLB_DEBUG=Off " | ||
|
||
# Host related setup | ||
EXTRA_OECMAKE += "-DGNU_HOST=${HOST_SYS} -DHOST=${HOST_ARCH} " | ||
|
||
# Disable LuaJIT and filter_lua support | ||
EXTRA_OECMAKE += "-DFLB_LUAJIT=Off -DFLB_FILTER_LUA=Off " | ||
|
||
# Disable Windows/ia32 only features | ||
EXTRA_OECMAKE += "-DFLB_WASM=Off " | ||
|
||
# Disable Library and examples | ||
EXTRA_OECMAKE += "-DFLB_SHARED_LIB=Off -DFLB_EXAMPLES=Off " | ||
|
||
# Systemd support | ||
EXTRA_OECMAKE += "-DFLB_IN_SYSTEMD=On " | ||
|
||
# Enable Kafka Output plugin | ||
EXTRA_OECMAKE += "-DFLB_OUT_KAFKA=On -DWITH_CURL=Off " | ||
|
||
# Remove Packageconfig default disable options, since they're causing build errors | ||
EXTRA_OECMAKE:remove = "\ | ||
-DFLB_ALL=No \ | ||
-DFLB_ARROW=No \ | ||
-DFLB_AVRO_ENCODER=No \ | ||
-DFLB_AWS=No \ | ||
-DFLB_AWS_ERROR_REPORTER=No \ | ||
-DFLB_BACKTRACE=No \ | ||
-DFLB_BINARY=No \ | ||
-DFLB_CHUNK_TRACE=No \ | ||
-DFLB_CONFIG_YAML=No \ | ||
-DFLB_COVERAGE=No \ | ||
-DFLB_CUSTOM_CALYPTIA=No \ | ||
-DFLB_DEBUG=No \ | ||
-DFLB_ENFORCE_ALIGNMENT=No \ | ||
-DFLB_HTTP_CLIENT_DEBUG=No \ | ||
-DFLB_HTTP_SERVER=No \ | ||
-DFLB_IN_KAFKA=OFF \ | ||
-DFLB_INOTIFY=No \ | ||
-DFLB_IPO=no \ | ||
-DFLB_JEMALLOC=No \ | ||
-DFLB_METRICS=No \ | ||
-DFLB_MINIMAL=No \ | ||
-DFLB_MTRACE=No \ | ||
-DFLB_PARSER=No \ | ||
-DFLB_POSIX_TLS=No \ | ||
-DFLB_PROXY_GO=No \ | ||
-DFLB_RECORD_ACCESSOR=No \ | ||
-DFLB_REGEX=No \ | ||
-DFLB_RELEASE=No \ | ||
-DFLB_RUN_LDCONFIG=No \ | ||
-DFLB_SIGNV4=No \ | ||
-DFLB_SMALL=No \ | ||
-DFLB_SQLDB=No \ | ||
-DFLB_STREAM_PROCESSOR=No \ | ||
-DFLB_TESTS_RUNTIME=No \ | ||
-DFLB_TLS=No \ | ||
-DFLB_TRACE=No \ | ||
-DFLB_UTF8_ENCODER=No \ | ||
-DFLB_VALGRIND=No \ | ||
-DFLB_WAMRC=No \ | ||
-DFLB_WASM_STACK_PROTECT=No \ | ||
-DFLB_WINDOWS_DEFAULTS=No \ | ||
" | ||
|
||
SYSTEMD_SERVICE:${PN} = "fluent-bit.service" | ||
|
||
do_install:append() { | ||
# fluentbit unconditionally install init scripts, let's remove them to install our own | ||
rm -Rf ${D}${nonarch_base_libdir} ${D}${sysconfdir}/init | ||
|
||
install -d ${D}${systemd_unitdir}/system | ||
install -m 0644 ${WORKDIR}/fluent-bit.service ${D}${systemd_unitdir}/system/fluent-bit.service | ||
install -d ${D}${sysconfdir}/fluent-bit/ | ||
install -m 0755 ${WORKDIR}/fluent-bit.conf ${D}${sysconfdir}/fluent-bit/fluent-bit.conf | ||
install -m 0755 ${WORKDIR}/emmc-health ${D}${bindir} | ||
install -d ${D}${sysconfdir}/fluent-bit/fluent-bit.d | ||
install -m 0644 ${WORKDIR}/custom-empty.conf ${D}${sysconfdir}/fluent-bit/fluent-bit.d | ||
} |