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:
parent
bd51c63b2a
commit
faabf6ebbb
|
|
@ -0,0 +1,2 @@
|
|||
# Skip loading Spidev module
|
||||
SUBSYSTEM=="spi", ACTION=="add", ENV{MODALIAS}=="spi:spidev", RUN="/bin/true"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue