Commit 27e6f10f authored by Florent Revest's avatar Florent Revest

systemd: Hardcode the udevd's firmware search path with a patch since the...

systemd: Hardcode the udevd's firmware search path with a patch since the meta-smartphone's bbappend is not effective anymore since systemd switched its build system to Meson. Yeah right, you can call this a hack but I couldn't find a better way to set the macro defined by Meson to an array of strings...
parent 2cf6c083
From e7a56333775f4015f16ac87c2b4977e2bfe14a74 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Mon, 27 Aug 2018 20:09:37 +0200
Subject: [PATCH] Hardcode the firmware-path value which can not be set to
multiple pdirectories from the Meson variable
---
src/udev/udev-builtin-firmware.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/udev/udev-builtin-firmware.c b/src/udev/udev-builtin-firmware.c
index bd8c2fb966..b56b34407b 100644
--- a/src/udev/udev-builtin-firmware.c
+++ b/src/udev/udev-builtin-firmware.c
@@ -74,7 +74,7 @@ exit:
static int builtin_firmware(struct udev_device *dev, int argc, char *argv[], bool test) {
struct udev *udev = udev_device_get_udev(dev);
- static const char *searchpath[] = { FIRMWARE_PATH };
+ static const char *searchpath[] = { "/lib/firmware/", "/etc/firmware/", "/system/etc/firmware/", "/vendor/firmware/"};
char loadpath[UTIL_PATH_SIZE];
char datapath[UTIL_PATH_SIZE];
char fwpath[UTIL_PATH_SIZE];
--
2.18.0
...@@ -4,7 +4,8 @@ SRC_URI_append = " file://50-video.rules \ ...@@ -4,7 +4,8 @@ SRC_URI_append = " file://50-video.rules \
file://dbus.service \ file://dbus.service \
file://dbus.socket \ file://dbus.socket \
file://dbus.conf \ file://dbus.conf \
file://logind.conf" file://logind.conf \
file://0001-Hardcode-the-firmware-path-value-which-can-not-be-se.patch"
do_install_append() { do_install_append() {
# Setup udev rules for the rights of Android and graphic cards specific devices # Setup udev rules for the rights of Android and graphic cards specific devices
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment