summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-04-24 17:58:23 -0500
committerJohn Klug <john.klug@multitech.com>2019-04-24 17:58:23 -0500
commit2674d4eee0398e6216e5e735a3c99a3d3e57c41f (patch)
tree1204e128649aec2cfbde8ac2b4a616b513742fbe /recipes-bsp
parenta916102b01af7a9da1ebcf172dc447721402b5d7 (diff)
downloadmeta-multitech-atmel-2674d4eee0398e6216e5e735a3c99a3d3e57c41f.tar.gz
meta-multitech-atmel-2674d4eee0398e6216e5e735a3c99a3d3e57c41f.tar.bz2
meta-multitech-atmel-2674d4eee0398e6216e5e735a3c99a3d3e57c41f.zip
Blacklist mts-io driver so it is not loaded by device tree.
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/multitech/mts-io.inc10
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.blacklist1
2 files changed, 9 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-io.inc b/recipes-bsp/multitech/mts-io.inc
index f742ff4..6d93879 100644
--- a/recipes-bsp/multitech/mts-io.inc
+++ b/recipes-bsp/multitech/mts-io.inc
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://io-module/COPYING;md5=94d55d512a9ba36caa9b7df079bae19
file://io-tool/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
"
DEPENDS = "virtual/kernel"
-INC_PR = "r4"
+INC_PR = "r1"
SRCREV = "${PV}"
@@ -17,6 +17,7 @@ SRC_URI = " \
file://led-status_heartbeat_trigger \
file://lora-led-updater \
file://mts-io.init \
+ file://mts-io.blacklist \
file://mts-io.mtcap.init \
file://mts-io.conf \
"
@@ -47,7 +48,10 @@ do_compile () {
PACKAGES = "${PN}-noarch kernel-module-${PN} ${PN}-util ${PN}-util-dbg ${PN}-dev"
-FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mts_io.ko"
+FILES_kernel-module-${PN} = " \
+ ${base_libdir}/modules/${KERNEL_VERSION}/extra/mts_io.ko \
+ ${sysconfdir}/modprobe.d/mts-io.conf \
+"
FILES_${PN}-noarch = "${sysconfdir}/init.d/mts-io \
${sysconfdir}/rc5.d/S95led-status_heartbeat_trigger \
@@ -93,6 +97,8 @@ fakeroot do_install () {
install -m 0755 ${WORKDIR}/led-status_heartbeat_trigger ${D}/${sysconfdir}/init.d/
install -d ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/mts-io.conf ${D}${sysconfdir}/default/mts-io
+ install -d ${D}${sysconfdir}/modprobe.d
+ install -m 0644 ${WORKDIR}/mts-io.blacklist ${D}${sysconfdir}/modprobe.d/mts-io.conf
# blink status LED after booted
install -d ${D}${sysconfdir}/rc5.d
diff --git a/recipes-bsp/multitech/mts-io/mts-io.blacklist b/recipes-bsp/multitech/mts-io/mts-io.blacklist
new file mode 100644
index 0000000..7421ac4
--- /dev/null
+++ b/recipes-bsp/multitech/mts-io/mts-io.blacklist
@@ -0,0 +1 @@
+blacklist mts-io