blob: 410fffa24bd2ba56bfccb2504b4c42149b70a387 [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001SUMMARY = "Diagnostic Log and Trace"
2DESCRIPTION = "This component provides a standardised log and trace interface, \
3based on the standardised protocol specified in the AUTOSAR standard 4.0 DLT. \
Patrick Williamsb542dec2023-06-09 01:26:37 -05004This component can be used by COVESA components and other applications as \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005logging facility providing: \
6- the DLT shared library \
7- the DLT daemon, including startup scripts \
8- the DLT daemon adaptors- the DLT client console utilities \
9- the DLT test applications"
Patrick Williamsb542dec2023-06-09 01:26:37 -050010HOMEPAGE = "https://www.covesa.global/"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000011SECTION = "console/utils"
Andrew Geissler9aee5002022-03-30 16:27:02 +000012LICENSE = "MPL-2.0"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000013LIC_FILES_CHKSUM = "file://LICENSE;md5=8184208060df880fe3137b93eb88aeea"
14
15DEPENDS = "zlib gzip-native json-c"
16
Patrick Williamsb542dec2023-06-09 01:26:37 -050017SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000018 file://0002-Don-t-execute-processes-as-a-specific-user.patch \
19 file://0004-Modify-systemd-config-directory.patch \
Andrew Geissler20137392023-10-12 04:59:14 -060020 file://544.patch \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000021 "
Andrew Geissler5082cc72023-09-11 08:41:39 -040022SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000023
24S = "${WORKDIR}/git"
25
Andrew Geissler20137392023-10-12 04:59:14 -060026PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd systemd-watchdog systemd-journal ', '', d)} \
27 dlt-examples dlt-adaptor dlt-adaptor-stdin dlt-adaptor-udp dlt-console \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000028 udp-connection dlt-system dlt-filetransfer "
29# dlt-dbus
30
31# General options
Andrew Geissler20137392023-10-12 04:59:14 -060032PACKAGECONFIG[dlt-examples] = "-DWITH_DLT_EXAMPLES=ON,-DWITH_DLT_EXAMPLES=OFF"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000033
34# Linux options
35PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF -DWITH_DLT_SYSTEM=OFF,systemd"
36PACKAGECONFIG[systemd-watchdog] = "-DWITH_SYSTEMD_WATCHDOG=ON,-DWITH_SYSTEMD_WATCHDOG=OFF,systemd,libsystemd"
37PACKAGECONFIG[systemd-journal] = "-DWITH_SYSTEMD_JOURNAL=ON,-DWITH_SYSTEMD_JOURNAL=OFF,systemd,libsystemd"
38PACKAGECONFIG[dlt-dbus] = "-DWITH_DLT_DBUS=ON,-DWITH_DLT_DBUS=OFF,dbus,dbus-lib"
39PACKAGECONFIG[udp-connection] = "-DWITH_UDP_CONNECTION=ON,-DWITH_UDP_CONNECTION=OFF"
40
41# Command line options
42PACKAGECONFIG[dlt-system] = "-DWITH_DLT_SYSTEM=ON,-DWITH_DLT_SYSTEM=OFF"
Andrew Geissler20137392023-10-12 04:59:14 -060043PACKAGECONFIG[dlt-adaptor] = "-DWITH_DLT_ADAPTOR=ON,-DWITH_DLT_ADAPTOR=OFF"
44PACKAGECONFIG[dlt-adaptor-stdin] = "-DWITH_DLT_ADAPTOR_STDIN=ON,-DWITH_DLT_ADAPTOR_STDIN=OFF"
45PACKAGECONFIG[dlt-adaptor-udp] = "-DWITH_DLT_ADAPTOR_UDP=ON,-DWITH_DLT_ADAPTOR_UDP=OFF"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000046PACKAGECONFIG[dlt-filetransfer] = "-DWITH_DLT_FILETRANSFER=ON,-DWITH_DLT_FILETRANSFER=OFF"
Andrew Geissler20137392023-10-12 04:59:14 -060047PACKAGECONFIG[dlt-console] = "-DWITH_DLT_CONSOLE=ON,-DWITH_DLT_CONSOLE=OFF"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000048
49inherit autotools gettext cmake pkgconfig systemd
50
Andrew Geissler20137392023-10-12 04:59:14 -060051# -DWITH_DLT_COREDUMPHANDLER=ON this feature is too experimental, disable for now
52#FILES:${PN} += "${libdir}/sysctl.d"
Andrew Geissler5082cc72023-09-11 08:41:39 -040053EXTRA_OECMAKE += "-DWITH_DLT_LOGSTORAGE_GZIP=ON -DWITH_EXTENDED_FILTERING=ON -DSYSTEMD_UNITDIR=${systemd_system_unitdir}"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000054
55PACKAGES += "${PN}-systemd"
56SYSTEMD_PACKAGES = "${PN} ${PN}-systemd"
57SYSTEMD_SERVICE:${PN} = " ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'dlt.service', '', d)} \
Andrew Geissler20137392023-10-12 04:59:14 -060058 ${@bb.utils.contains('PACKAGECONFIG', 'systemd dlt-system', 'dlt-system.service', '', d)} \
59 ${@bb.utils.contains('PACKAGECONFIG', 'systemd dlt-dbus', 'dlt-dbus.service', '', d)}"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000060SYSTEMD_AUTO_ENABLE:${PN} = "enable"
61SYSTEMD_SERVICE:${PN}-systemd = " \
Andrew Geissler20137392023-10-12 04:59:14 -060062 ${@bb.utils.contains('PACKAGECONFIG', 'systemd dlt-adaptor-udp', 'dlt-adaptor-udp.service', '', d)} \
63 ${@bb.utils.contains('PACKAGECONFIG', 'systemd dlt-examples', 'dlt-example-user.service', '', d)} \
64 ${@bb.utils.contains('PACKAGECONFIG', 'systemd dlt-examples dlt-console', 'dlt-receive.service', '', d)} \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000065"
66SYSTEMD_AUTO_ENABLE:${PN}-systemd = "disable"
67
68FILES:${PN}-doc += "${datadir}/dlt-filetransfer"
69
70do_install:append() {
71 rm -f ${D}${bindir}/dlt-test-*
72}