summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-05-21 07:58:26 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-05-30 00:00:23 +0900
commit261769808117585a84046e8d3ab566f40d31d5da (patch)
tree2746dfd4191f2727ee923a45429208a9d81a8b80 /meta-agl-ic-container/recipes-extended/dlt-daemon/dlt-daemon_%.bbappend
parent290a53967ac12d59883b111e6c08183f172aa108 (diff)
Enable logging solution in AGL IC container integration
In case of container isolation, a logs of each container record inside a container. When developer want to analyze system using logs, they need to combine log file between host and guest. This patch enable system wide logging solution for AGL IC container integration. This architecture describe in https://confluence.automotivelinux.org/display/IC/Architecture+design+for+logging Bug-AGL: SPEC-4005 Change-Id: I331474530131e6a87b41639444d705c8293d4c0c Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
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 \
+"