From 74f6b495e5015de01623a53f9c568649fea0d1ac Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 25 Jun 2019 09:15:19 -0500 Subject: btclonly package for rs9113, and mths compatible "machine" for kernel --- recipes-kernel/linux/linux-at91_4.9.87.bb | 2 +- recipes-kernel/rs9113/rs9113.inc | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/linux/linux-at91_4.9.87.bb b/recipes-kernel/linux/linux-at91_4.9.87.bb index 65ebc8d..9d9ba75 100644 --- a/recipes-kernel/linux/linux-at91_4.9.87.bb +++ b/recipes-kernel/linux/linux-at91_4.9.87.bb @@ -105,7 +105,7 @@ kernel_do_configure_append() { KERNEL_MODULE_PACKAGE_SUFFIX="" -COMPATIBLE_MACHINE = "(mtcdt|mtrv1|mtr|mtcap)" +COMPATIBLE_MACHINE = "(mtcdt|mtrv1|mtr|mtcap|mths)" pkg_preinst_kernel-image-uimage() { set -x diff --git a/recipes-kernel/rs9113/rs9113.inc b/recipes-kernel/rs9113/rs9113.inc index 26eeb84..a22dcdf 100644 --- a/recipes-kernel/rs9113/rs9113.inc +++ b/recipes-kernel/rs9113/rs9113.inc @@ -8,7 +8,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" # noarch contains the init script and configuration for the driver and # the firmware file (firmware/*.rps). -PACKAGES = "${PN}-utils-extra ${PN}-misc kernel-module-${PN} ${PN}-util ${PN}-dbg ${PN}-noarch ${PN}-autostart" +PACKAGES = "${PN}-utils-extra ${PN}-misc kernel-module-${PN} ${PN}-util ${PN}-dbg ${PN}-noarch ${PN}-autostart ${PN}-btclonly" ALLOW_EMPTY_${PN}-autostart = "1" PACKAGE_ARCH_${PN}-noarch = "all" PACKAGE_ARCH_${PN}-misc = "all" @@ -16,9 +16,12 @@ PACKAGE_ARCH_${PN}-autostart = "all" PACKAGE_ARCH_${PN}-util = "${TUNE_PKGARCH}" PACKAGE_ARCH_${PN}-utils-extra = "${TUNE_PKGARCH}" PACKAGE_ARCH_${PN}-dbg = "${TUNE_PKGARCH}" +PACKAGE_ARCH_${PN}-btclonly = "all" RDEPENDS_${PN}-noarch = "bash" RDEPENDS_${PN}-misc = "bash" +ALLOW_EMPTY_${PN}-btclonly = "1" + DR = "${DL_DIR}/rs9113-ipk" FILESEXTRAPATHS_append := "${DR}:" @@ -164,3 +167,9 @@ python do_cleanall_prepend () { bb.note("About to delete " + DR) os.system("/bin/rm -rf " + DR) } + +# btclonly package sets Bluetooth Classic mode +pkg_postinst_${PN}-btclonly() { + sed -i 's/^COEX_MODE=.*/COEX_MODE=4/' $D${sysconfdir}/default/rs9113 +} + -- cgit v1.2.3