udev-extraconf: add rule not to autoload spidev module

Prevents loading the spidev module at boot time to avoid
the undesired warning message from driver.

https://jira.digi.com/browse/DEL-4748

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2017-11-17 14:04:28 +01:00
parent bd51c63b2a
commit faabf6ebbb
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,2 @@
# Skip loading Spidev module
SUBSYSTEM=="spi", ACTION=="add", ENV{MODALIAS}=="spi:spidev", RUN="/bin/true"

View File

@ -1,15 +1,17 @@
# Copyright (C) 2013 Digi International.
# Copyright (C) 2013-2017 Digi International.
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
SRC_URI += " \
file://mount_bootparts.sh \
file://mount_partition.sh \
file://81-spi-spidev.rules \
"
do_install_append() {
install -m 0755 ${WORKDIR}/mount_bootparts.sh ${D}${sysconfdir}/udev/scripts/
install -m 0755 ${WORKDIR}/mount_partition.sh ${D}${sysconfdir}/udev/scripts/
install -m 0644 ${WORKDIR}/81-spi-spidev.rules ${D}${sysconfdir}/udev/rules.d/
# Bluetooth tty symlink
if [ -n "${BT_TTY}" ]; then