SUMMARY = "VRPMDV Monitoring TTY"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"

inherit module

SRC_URI = "file://Makefile \
           file://vrpmdv-mon-tty.c \
           file://75-mon-tty.rules \                      
          "

S = "${WORKDIR}"

# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.
do_install:append() {
    # udev rules for tty
    install -d ${D}${sysconfdir}/udev/rules.d/
    install -m 0644 ${WORKDIR}/75-mon-tty.rules ${D}${sysconfdir}/udev/rules.d/75-mon-tty.rules
}
FILES:${PN} += "${sysconfdir}/udev/rules.d/"


RPROVIDES:${PN} += "kernel-module-vrpmdv-mon-tty"
