blob: dec56e26e77a0f174f0aa2c96d454465344ec9a8 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "Mediatek MT66xx BT/WIFI/GPS Driver insmod"
2LICENSE = "MediaTekProprietary"
3LIC_FILES_CHKSUM = "file://${COREBASE}/bitbake/COPYING;md5=751419260aa954499f7abaabaa882bbe"
4
5INSMOD_SRC = "${TOPDIR}/../meta/meta-mediatek-mt2731/recipes-kernel/modules"
6
7inherit workonsrc systemd
8
9WORKONSRC = "${INSMOD_SRC}"
10
11SYSTEMD_PACKAGES = "${PN}"
12SYSTEMD_SERVICE_${PN} = "mt66xx_drv_insmod.service"
13FILES_${PN} += "${systemd_unitdir}/system/mt66xx_drv_insmod.service"
14FILES_${PN} += "etc/mt66xx_drv_insmod.sh ${systemd_unitdir}"
15
16do_install() {
17 install -d ${D}/etc
18 install -m 755 ${WORKONSRC}/mt6630_drv_insmod.sh ${D}/etc/mt66xx_drv_insmod.sh
19 install -d ${D}${systemd_unitdir}/system
20 install -m 755 ${WORKONSRC}/mt66xx_drv_insmod.service ${D}${systemd_unitdir}/system
21}