blob: 94df015068bd2b5a9f36dc20965a036c864596a0 [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
Andrew Geissler69721092021-07-23 12:57:00 -040015DEPENDS = "zlib gzip-native json-c"
Andrew Geissler82c905d2020-04-13 13:39:40 -050016
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 Geissler69721092021-07-23 12:57:00 -040020 file://317.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050021"
Andrew Geissler69721092021-07-23 12:57:00 -040022SRCREV = "24d197214bfdcec7430d31b42e5c87df27287aaf"
Andrew Geissler82c905d2020-04-13 13:39:40 -050023
24S = "${WORKDIR}/git"
25
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050026PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd systemd-watchdog systemd-journal dlt-examples dlt-adaptor dlt-console ', '', d)} \
27 udp-connection dlt-system dlt-filetransfer "
28# dlt-dbus
29
Andrew Geissler82c905d2020-04-13 13:39:40 -050030# General options
31PACKAGECONFIG[dlt-examples] = "-DWITH_DLT_EXAMPLES=ON,-DWITH_DLT_EXAMPLES=OFF,,dlt-daemon-systemd"
32
33# Linux options
34PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd"
35PACKAGECONFIG[systemd-watchdog] = "-DWITH_SYSTEMD_WATCHDOG=ON,-DWITH_SYSTEMD_WATCHDOG=OFF,systemd,libsystemd"
36PACKAGECONFIG[systemd-journal] = "-DWITH_SYSTEMD_JOURNAL=ON,-DWITH_SYSTEMD_JOURNAL=OFF,systemd,libsystemd"
37PACKAGECONFIG[dlt-dbus] = "-DWITH_DLT_DBUS=ON,-DWITH_DLT_DBUS=OFF,dbus,dbus-lib"
38PACKAGECONFIG[udp-connection] = "-DWITH_UDP_CONNECTION=ON,-DWITH_UDP_CONNECTION=OFF"
39
40# Command line options
41PACKAGECONFIG[dlt-system] = "-DWITH_DLT_SYSTEM=ON,-DWITH_DLT_SYSTEM=OFF"
42PACKAGECONFIG[dlt-adaptor] = "-DWITH_DLT_ADAPTOR=ON,-DWITH_DLT_ADAPTOR=OFF,,dlt-daemon-systemd"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050043PACKAGECONFIG[dlt-filetransfer] = "-DWITH_DLT_FILETRANSFER=ON,-DWITH_DLT_FILETRANSFER=OFF"
Andrew Geissler82c905d2020-04-13 13:39:40 -050044PACKAGECONFIG[dlt-console] = "-DWITH_DLT_CONSOLE=ON,-DWITH_DLT_CONSOLE=OFF,,dlt-daemon-systemd"
45
46inherit autotools gettext cmake systemd
47
Andrew Geissler69721092021-07-23 12:57:00 -040048EXTRA_OECMAKE += "-DWITH_EXTENDED_FILTERING=ON -DSYSTEMD_UNITDIR=${systemd_system_unitdir}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050049
50PACKAGES += "${PN}-systemd"
51SYSTEMD_PACKAGES = "${PN} ${PN}-systemd"
Patrick Williams213cb262021-08-07 19:21:33 -050052SYSTEMD_SERVICE:${PN} = " ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'dlt.service', '', d)} \
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050053 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-system', 'dlt-system.service', '', d)} \
54 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-dbus', 'dlt-dbus.service', '', d)}"
Patrick Williams213cb262021-08-07 19:21:33 -050055SYSTEMD_AUTO_ENABLE:${PN} = "enable"
56SYSTEMD_SERVICE:${PN}-systemd = " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050057 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-adaptor', 'dlt-adaptor-udp.service', '', d)} \
58 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples', 'dlt-example-user.service', '', d)} \
59 ${@bb.utils.contains('PACKAGECONFIG', 'dlt-examples dlt-console', 'dlt-receive.service', '', d)} \
60"
Patrick Williams213cb262021-08-07 19:21:33 -050061SYSTEMD_AUTO_ENABLE:${PN}-systemd = "disable"
Andrew Geissler82c905d2020-04-13 13:39:40 -050062
Patrick Williams213cb262021-08-07 19:21:33 -050063FILES:${PN}-doc += "${datadir}/dlt-filetransfer"
Andrew Geissler82c905d2020-04-13 13:39:40 -050064
Patrick Williams213cb262021-08-07 19:21:33 -050065do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050066 rm -f ${D}${bindir}/dlt-test-*
67}