rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "Mediatek MT66xx BT/WIFI/GPS Driver insmod" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/bitbake/COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 4 | |
| 5 | INSMOD_SRC = "${TOPDIR}/../meta/meta-mediatek-mt2731/recipes-kernel/modules" |
| 6 | |
| 7 | inherit workonsrc systemd |
| 8 | |
| 9 | WORKONSRC = "${INSMOD_SRC}" |
| 10 | |
| 11 | SYSTEMD_PACKAGES = "${PN}" |
| 12 | SYSTEMD_SERVICE_${PN} = "mt66xx_drv_insmod.service" |
| 13 | FILES_${PN} += "${systemd_unitdir}/system/mt66xx_drv_insmod.service" |
| 14 | FILES_${PN} += "etc/mt66xx_drv_insmod.sh ${systemd_unitdir}" |
| 15 | |
| 16 | do_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 | } |