diff options
Diffstat (limited to 'meta-ivi/recipes-extended/dlt-daemon/dlt-daemon_2.9.1.bb')
-rw-r--r-- | meta-ivi/recipes-extended/dlt-daemon/dlt-daemon_2.9.1.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-ivi/recipes-extended/dlt-daemon/dlt-daemon_2.9.1.bb b/meta-ivi/recipes-extended/dlt-daemon/dlt-daemon_2.9.1.bb new file mode 100644 index 0000000..73abdb1 --- /dev/null +++ b/meta-ivi/recipes-extended/dlt-daemon/dlt-daemon_2.9.1.bb @@ -0,0 +1,55 @@ +SUMMARY = "Diagnostic Log and Trace" +DESCRIPTION = "This component provides a standardised log and trace interface, based on \ + thestandardised protocol specified in the AUTOSAR standard 4.0 DLT.This \ + component can be used by GENIVI components and other applications aslogging \ + facility providing \ + - the DLT shared library \ + - the DLT daemon, including startup scripts \ + - the DLT daemon adaptors- the DLT client console utilities \ + - the DLT test applications \ + " +HOMEPAGE = "https://www.genivi.org/" +SECTION = "console/utils" + +inherit gzipnative + +LICENSE = "MPLv2" +LIC_FILES_CHKSUM = " \ + file://LICENSE.txt;md5=99ba60c3fad7eaf8c56bca6dd75cba09 \ + file://MPL.txt;md5=ccdb2761cef70c8b2612624c323f89dc \ + " + +DEPENDS = "zlib" + +SRCREV = "6ab10c022d4464628fc2b848b5a56bf1eaafe857" +PR = "r2" + +SRC_URI = "git://git.projects.genivi.org/${PN}.git \ + file://modify_systemd_config_dir.patch \ + file://0001-Fix-build-with-systemd-209.patch \ + " + +S = "${WORKDIR}/git" + +inherit autotools gettext cmake + +FILES_${PN}-doc += "/usr/share/*" +FILES_${PN}-systemd += "${systemd_unitdir}/system/" + +PACKAGES =+ "${PN}-systemd" + +EXTRA_OECMAKE = "-DWITH_SYSTEMD=ON" + +# Remove "User=genivi" option from systemd services +# as there is no such username +do_install_append() { + sed -i '/User/d' ${D}/${systemd_unitdir}/system/*.service + + if [ ${@base_contains('EXTRA_OECMAKE', '-DWITH_SYSTEMD=ON', 'yes', 'no', d)} = yes ]; then + # Install the required systemd services links + install -d ${D}${base_libdir}/systemd/system/basic.target.wants + ln -sf ../dlt.service ${D}${base_libdir}/systemd/system/basic.target.wants/dlt.service + ln -sf ../dlt-system.service ${D}${base_libdir}/systemd/system/basic.target.wants/dlt-system.service + fi + +} |