diff options
author | Denys Dmytriyenko <denys@ti.com> | 2016-04-30 04:14:51 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2016-04-29 21:32:46 -0400 |
commit | 4b96409bccb7a674ab0cd0b31a540480bf13d2be (patch) | |
tree | e0c369428ebb4f5abce11325004955fee4710114 /recipes-core | |
parent | ca43376a8c0868e356c709571257f47f011c715e (diff) | |
download | meta-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.rules | 3 | ||||
-rw-r--r-- | recipes-core/udev/eudev_%.bbappend | 7 |
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 | ||
3 | SUBSYSTEM=="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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
2 | 2 | ||
3 | SRC_URI_append = " file://omap-tty.rules" | 3 | SRC_URI_append = " \ |
4 | file://omap-tty.rules \ | ||
5 | file://firmware.rules \ | ||
6 | " | ||
4 | 7 | ||
5 | PR_append = ".1" | 8 | PR_append = ".2" |
6 | 9 | ||
7 | install_omap_rules() { | 10 | install_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/ |