SUMMARY = "VRPMDV Monitoring Driver"
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-monitoring.c \
           file://75-vrpmdv-monitoring.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 vrpmdv-monitoring
    install -d ${D}${sysconfdir}/udev/rules.d/
    install -m 0644 ${WORKDIR}/75-vrpmdv-monitoring.rules ${D}${sysconfdir}/udev/rules.d/75-vrpmdv-monitoring.rules
}

FILES:${PN} += "${sysconfdir}/udev/rules.d/"


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