X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-kernel%2Fsllin%2Fsllin.bb;h=0478b21a784c11caea0c30dc27dcea0762b3407b;hb=9720369548deb31910c6addabad74886653444bc;hp=eecd439477084453609a970b09e4730527f62e65;hpb=d30e570a35bf60b8c78b804608af2fe13a69e41d;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-kernel/sllin/sllin.bb b/recipes-kernel/sllin/sllin.bb index eecd43947..0478b21a7 100644 --- a/recipes-kernel/sllin/sllin.bb +++ b/recipes-kernel/sllin/sllin.bb @@ -2,7 +2,7 @@ DESCRIPTION = "slLIN driver module" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" -inherit module +inherit module systemd DEPENDS = "virtual/kernel" @@ -16,6 +16,29 @@ SRC_URI_append = " \ file://0001_update_makefile.patch;pnum=2 \ file://0002_fix_null_operation_check.patch;pnum=2 \ file://0003-Allow-recent-kernels-newer-4.11.x-to-build.patch;pnum=2 \ + file://0001-Disable-sllin-driver-debug-log.patch;pnum=2 \ + file://sllin-demo.service \ + file://start_lin_demo.sh \ + file://lin_config.conf \ " +KERNEL_MODULE_AUTOLOAD_append = " sllin" +KERNEL_MODULE_PROBECONF_append = " sllin" +SLLINBAUDRATE ??= "9600" +module_conf_sllin = "options sllin baudrate=${SLLINBAUDRATE}" + +SYSTEMD_SERVICE_${PN} = "sllin-demo.service" + +do_install_append () { + install -d 644 ${D}/${bindir} + install -m 755 ${WORKDIR}/start_lin_demo.sh ${D}/${bindir}/start_lin_demo.sh + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/sllin-demo.service ${D}${systemd_system_unitdir}/ + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/lin_config.conf ${D}${sysconfdir}/ +} + +FILES_${PN} += "${bindir}/start_lin_demo.sh ${sysconfdir}/lin_config.conf" + +RDEPENDS_${PN} += "lin-config"