avs_mtk_voice/meta/meta-mediatek-aud/recipes-kernel/modules/mt7668-bt-drv.bb

36 lines
1.1 KiB
BlitzBasic

DESCRIPTION = "Mediatek MT7668 BT Driver"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
DEPENDS = "linux-mtk-extension"
MT7668_SRC = "${TOPDIR}/../src/kernel/modules/connectivity/bt_driver/mt76xx"
inherit workonsrc
WORKONSRC = "${MT7668_SRC}/turnkey_sdio"
MODULE_NAME = "btmtksdio"
LINUX_SRC = "${TOPDIR}/tmp/work/${MACHINE_ARCH}-poky-${TARGET_OS}/${PREFERRED_PROVIDER_virtual/kernel}/4.4-${PR}/${PREFERRED_PROVIDER_virtual/kernel}-4.4/"
LDFLAGS = "-L ${TOPDIR}/tmp/sysroots/${MTK_PROJECT}/${libdir}"
do_compile() {
if test "${COMBO_CHIP_ID}" = "mt7668"; then
echo mt7668 bt start compile
echo ${WORKONSRC}
make sdio TOPDIR=${TOPDIR} MODULE_NAME=btmtksdio LINUX_SRC=${LINUX_SRC} ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux- PLATFORM=MT8516_YOCTO
echo mt7668 bt end compile
fi
}
do_install() {
echo ${D}
if test "${COMBO_CHIP_ID}" = "mt7668"; then
install -d ${D}/lib/modules/mt7668/
install -m 0644 ${S}/${MODULE_NAME}.ko ${D}/lib/modules/mt7668/
fi
}
FILES_${PN} += "/lib/modules/mt7668"
INSANE_SKIP_${PN} += "already-stripped"
FILES_${PN}-dev = ""