summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/btwilink-disable-conf
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2018-12-18 16:22:10 -0500
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-12-20 21:10:18 +0000
commit4913c46bf2c4099bf467eee30c0faf1d41618fa2 (patch)
treeb8b3309d42f4ca3ab1d1b539905d90b04e8aee6e /recipes-connectivity/btwilink-disable-conf
parentd786abb46aa885898c61d08dc7d6b4564bea2b93 (diff)
Disable btwilink by default on m3ulcb
Testing for CES has found the wilink BT on the M3+Kingfisher somewhat unreliable. To disable it by default for now, add a demo platform configuration hook to packagegroup-agl-demo-platform and use it to pick up a modprobe configuration file to prevent btwilink from loading. This addition is specific to the m3ulcb platform, and the variable DEMO_ENABLE_BTWILINK can be used to over-ride the behavior by setting it to "true" in local.conf or site.conf. Change-Id: Ia645d9329594547f83601526e3f3fd5da5845b24 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'recipes-connectivity/btwilink-disable-conf')
-rw-r--r--recipes-connectivity/btwilink-disable-conf/btwilink-disable-conf_1.0.bb14
-rw-r--r--recipes-connectivity/btwilink-disable-conf/files/btwilink-disable.conf1
2 files changed, 15 insertions, 0 deletions
diff --git a/recipes-connectivity/btwilink-disable-conf/btwilink-disable-conf_1.0.bb b/recipes-connectivity/btwilink-disable-conf/btwilink-disable-conf_1.0.bb
new file mode 100644
index 000000000..9170a84e6
--- /dev/null
+++ b/recipes-connectivity/btwilink-disable-conf/btwilink-disable-conf_1.0.bb
@@ -0,0 +1,14 @@
+SUMMARY = "btwilink module disabling modprobe configuration"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+SRC_URI = "file://btwilink-disable.conf"
+
+COMPATIBLE_MACHINE = "m3ulcb"
+
+do_compile[noexec] = "1"
+
+do_install() {
+ install -d ${D}${sysconfdir}/modprobe.d
+ install -m 0644 ${WORKDIR}/btwilink-disable.conf ${D}${sysconfdir}/modprobe.d
+}
diff --git a/recipes-connectivity/btwilink-disable-conf/files/btwilink-disable.conf b/recipes-connectivity/btwilink-disable-conf/files/btwilink-disable.conf
new file mode 100644
index 000000000..8d28f629e
--- /dev/null
+++ b/recipes-connectivity/btwilink-disable-conf/files/btwilink-disable.conf
@@ -0,0 +1 @@
+install btwilink /bin/false