blob: dec56e26e77a0f174f0aa2c96d454465344ec9a8 [file] [log] [blame]
DESCRIPTION = "Mediatek MT66xx BT/WIFI/GPS Driver insmod"
LICENSE = "MediaTekProprietary"
LIC_FILES_CHKSUM = "file://${COREBASE}/bitbake/COPYING;md5=751419260aa954499f7abaabaa882bbe"
INSMOD_SRC = "${TOPDIR}/../meta/meta-mediatek-mt2731/recipes-kernel/modules"
inherit workonsrc systemd
WORKONSRC = "${INSMOD_SRC}"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "mt66xx_drv_insmod.service"
FILES_${PN} += "${systemd_unitdir}/system/mt66xx_drv_insmod.service"
FILES_${PN} += "etc/mt66xx_drv_insmod.sh ${systemd_unitdir}"
do_install() {
install -d ${D}/etc
install -m 755 ${WORKONSRC}/mt6630_drv_insmod.sh ${D}/etc/mt66xx_drv_insmod.sh
install -d ${D}${systemd_unitdir}/system
install -m 755 ${WORKONSRC}/mt66xx_drv_insmod.service ${D}${systemd_unitdir}/system
}