summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend')
-rw-r--r--meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend72
1 files changed, 72 insertions, 0 deletions
diff --git a/meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend b/meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend
new file mode 100644
index 00000000..75402fc6
--- /dev/null
+++ b/meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend
@@ -0,0 +1,72 @@
+# DLT for Linux container integration
+FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
+
+SRC_URI:append = " \
+ file://0001-Disable-noisy-log-from-dlt-daemon.patch \
+ file://dlt.conf \
+ file://dlt-system.conf \
+ file://dlt_logstorage.conf \
+"
+
+# Mandatory require to systemd feature
+inherit features_check
+REQUIRED_DISTRO_FEATURES = "systemd"
+
+PACKAGECONFIG = "systemd systemd-watchdog systemd-journal dlt-system unixsocket"
+
+# General Options
+PACKAGECONFIG[unixsocket] = "-DDLT_IPC=UNIX_SOCKET -DDLT_USER_IPC_PATH=${DLT_COMMON_IPC_PATH},-DDLT_IPC=FIFO"
+
+# Common DLT log transfer path between host and guest
+DLT_COMMON_IPC_PATH = "/run/dlt/"
+
+# Breakdown each package from all in one
+PACKAGE_BEFORE_PN:append = "libdlt ${PN}-command ${PN}-system ${PN}-gateway ${PN}-dbus ${PN}-example"
+
+SYSTEMD_PACKAGES:append = " \
+ ${@bb.utils.contains('PACKAGECONFIG', 'dlt-system', '${PN}-system', '', d)} \
+ ${@bb.utils.contains('PACKAGECONFIG', 'dlt-dbus', ' ${PN}-dbus', '', d)} \
+"
+SYSTEMD_SERVICE:${PN}-system = "dlt-system.service"
+SYSTEMD_AUTO_ENABLE:${PN}-system = "enable"
+SYSTEMD_SERVICE:${PN}-dbus = "dlt-dbus.service"
+SYSTEMD_AUTO_ENABLE:${PN}-dbus = "enable"
+SYSTEMD_SERVICE:${PN} = "dlt.service"
+
+do_install:append() {
+ install -d ${D}${sysconfdir}
+ install -m 0644 ${WORKDIR}/dlt.conf ${D}${sysconfdir}/
+ install -m 0644 ${WORKDIR}/dlt-system.conf ${D}${sysconfdir}/
+
+ install -d ${D}/var/nvlog/dlt
+ install -m 0644 ${WORKDIR}/dlt_logstorage.conf ${D}/var/nvlog/dlt
+}
+
+FILES:libdlt = "${libdir}/libdlt${SOLIBS}"
+FILES:${PN}-command = " \
+ ${bindir}/dlt-receive \
+ ${bindir}/dlt-control \
+ ${bindir}/dlt-convert \
+ ${bindir}/dlt-logstorage-ctrl \
+ ${bindir}/dlt-sortbytimestamp \
+ ${bindir}/dlt-adaptor-stdin \
+"
+FILES:${PN}-system = " \
+ ${bindir}/dlt-system \
+ ${sysconfdir}/dlt-system.conf \
+ ${systemd_system_unitdir}/dlt-system.service \
+"
+FILES:${PN}-gateway = " \
+ ${bindir}/dlt-passive-node-ctrl \
+ ${sysconfdir}/dlt_gateway.conf \
+"
+FILES:${PN}-dbus = " \
+ ${bindir}/dlt-dbus \
+ ${sysconfdir}/dlt-dbus.conf \
+"
+FILES:${PN}-example = " \
+ ${bindir}/dlt-example* \
+"
+FILES:${PN}:append = " \
+ /var/nvlog/dlt/dlt_logstorage.conf \
+"