summaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2016-04-30 04:14:51 +0000
committerDenys Dmytriyenko <denys@ti.com>2016-04-29 21:32:46 -0400
commit4b96409bccb7a674ab0cd0b31a540480bf13d2be (patch)
treee0c369428ebb4f5abce11325004955fee4710114 /recipes-core
parentca43376a8c0868e356c709571257f47f011c715e (diff)
downloadmeta-ti-4b96409bccb7a674ab0cd0b31a540480bf13d2be.tar.gz
eudev: immediately tell kernel that userspace FW loading failed
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/udev/eudev/firmware.rules3
-rw-r--r--recipes-core/udev/eudev_%.bbappend7
2 files changed, 8 insertions, 2 deletions
diff --git a/recipes-core/udev/eudev/firmware.rules b/recipes-core/udev/eudev/firmware.rules
new file mode 100644
index 00000000..f7a08ce9
--- /dev/null
+++ b/recipes-core/udev/eudev/firmware.rules
@@ -0,0 +1,3 @@
1# stub for immediately telling the kernel that userspace firmware loading
2# failed; necessary to avoid long timeouts with CONFIG_FW_LOADER_USER_HELPER=y
3SUBSYSTEM=="firmware", ACTION=="add", ATTR{loading}="-1"
diff --git a/recipes-core/udev/eudev_%.bbappend b/recipes-core/udev/eudev_%.bbappend
index a23d0155..54cbf841 100644
--- a/recipes-core/udev/eudev_%.bbappend
+++ b/recipes-core/udev/eudev_%.bbappend
@@ -1,8 +1,11 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2 2
3SRC_URI_append = " file://omap-tty.rules" 3SRC_URI_append = " \
4 file://omap-tty.rules \
5 file://firmware.rules \
6"
4 7
5PR_append = ".1" 8PR_append = ".2"
6 9
7install_omap_rules() { 10install_omap_rules() {
8 install -m 0644 ${WORKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/ 11 install -m 0644 ${WORKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/