blob: 5066e76d3488dd401d1fb3af2aca0b4235df4731 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "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. \
4This component can be used by GENIVI components and other applications as \
5logging 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"
10HOMEPAGE = "https://www.genivi.org/"
11SECTION = "console/utils"
12LICENSE = "MPLv2"
13LIC_FILES_CHKSUM = "file://LICENSE;md5=8184208060df880fe3137b93eb88aeea"
14
15DEPENDS = "zlib gzip-native"
16
17SRC_URI = "git://github.com/GENIVI/${BPN}.git;protocol=https \
18 file://0002-Don-t-execute-processes-as-a-specific-user.patch \
19 file://0004-Modify-systemd-config-directory.patch \
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050020 file://241.patch \
Andrew Geisslerd688a012020-09-18 13:36:00 -050021 file://245.patch \
Andrew Geissler8fc454f2020-12-11 16:27:59 -060022 file://275.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050023"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050024SRCREV = "f1ac087c766827b1d0ed9c3a814b3cc052e948f2"
Andrew Geissler82c905d2020-04-13 13:39:40 -050025
26S = "${WORKDIR}/git"
27
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050028PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd systemd-watchdog systemd-journal dlt-examples dlt-adaptor dlt-console ', '', d)} \
29 udp-connection dlt-system dlt-filetransfer "
30# dlt-dbus
31
Andrew Geissler82c905d2020-04-13 13:39:40 -050032# General options
33PACKAGECONFIG[dlt-examples] = "-DWITH_DLT_EXAMPLES=ON,-DWITH_DLT_EXAMPLES=OFF,,dlt-daemon-systemd"
34
35# Linux options
36PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd"
37PACKAGECONFIG[systemd-watchdog] = "-DWITH_SYSTEMD_WATCHDOG=ON,-DWITH_SYSTEMD_WATCHDOG=OFF,systemd,libsystemd"
38PACKAGECONFIG[systemd-journal] = "-DWITH_SYSTEMD_JOURNAL=ON,-DWITH_SYSTEMD_JOURNAL=OFF,systemd,libsystemd"
39PACKAGECONFIG[dlt-dbus] = "-DWITH_DLT_DBUS=ON,-DWITH_DLT_DBUS=OFF,dbus,dbus-lib"
40PACKAGECONFIG[udp-connection] = "-DWITH_UDP_CONNECTION=ON,-DWITH_UDP_CONNECTION=OFF"
41
42# Command line options
43PACKAGECONFIG[dlt-system] = "-DWITH_DLT_SYSTEM=ON,-DWITH_DLT_SYSTEM=OFF"
44PACKAGECONFIG[dlt-adaptor] = "-DWITH_DLT_ADAPTOR=ON,-DWITH_DLT_ADAPTOR=OFF,,dlt-daemon-systemd"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050045PACKAGECONFIG[dlt-filetransfer] = "-DWITH_DLT_FILETRANSFER=ON,-DWITH_DLT_FILETRANSFER=OFF"
Andrew Geissler82c905d2020-04-13 13:39:40 -050046PACKAGECONFIG[dlt-console] = "-DWITH_DLT_CONSOLE=ON,-DWITH_DLT_CONSOLE=OFF,,dlt-daemon-systemd"
47
48inherit autotools gettext cmake systemd
49
50EXTRA_OECMAKE += "-DSYSTEMD_UNITDIR=${systemd_system_unitdir}"
51
52PACKAGES += "${PN}-systemd"
53SYSTEMD_PACKAGES = "${PN} ${PN}-systemd"
54SYSTEMD_SERVICE_${PN} = " ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'dlt.service', '', d)} \
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050055 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-system', 'dlt-system.service', '', d)} \
56 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-dbus', 'dlt-dbus.service', '', d)}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050057SYSTEMD_AUTO_ENABLE_${PN} = "enable"
58SYSTEMD_SERVICE_${PN}-systemd = " \
59 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-adaptor', 'dlt-adaptor-udp.service', '', d)} \
60 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples', 'dlt-example-user.service', '', d)} \
61 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples dlt-console', 'dlt-receive.service', '', d)} \
62"
63SYSTEMD_AUTO_ENABLE_${PN}-systemd = "disable"
64
65FILES_${PN}-doc += "${datadir}/dlt-filetransfer"
66
67do_install_append() {
68 rm -f ${D}${bindir}/dlt-test-*
69}