diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch | 54 |
1 files changed, 24 insertions, 30 deletions
diff --git a/meta/recipes-core/systemd/systemd/0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch b/meta/recipes-core/systemd/systemd/0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch index f31d211e76..95871bb053 100644 --- a/meta/recipes-core/systemd/systemd/0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch +++ b/meta/recipes-core/systemd/systemd/0015-Revert-udev-remove-userspace-firmware-loading-suppor.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 4d28d9a7d8d69fb429955d770e53e7a81640da24 Mon Sep 17 00:00:00 2001 | 1 | From 7883985a3a78677e9a1d5d61fe7fa8badf39f565 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 9 Nov 2016 20:45:23 -0800 | 3 | Date: Wed, 9 Nov 2016 20:45:23 -0800 |
4 | Subject: [PATCH 15/19] Revert "udev: remove userspace firmware loading | 4 | Subject: [PATCH 10/14] Revert "udev: remove userspace firmware loading |
5 | support" | 5 | support" |
6 | 6 | ||
7 | This reverts commit be2ea723b1d023b3d385d3b791ee4607cbfb20ca. | 7 | This reverts commit be2ea723b1d023b3d385d3b791ee4607cbfb20ca. |
@@ -11,23 +11,24 @@ Upstream-Status: Inappropriate [OE specific] | |||
11 | 11 | ||
12 | Signed-off-by: Jonathan Liu <net147@gmail.com> | 12 | Signed-off-by: Jonathan Liu <net147@gmail.com> |
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
14 | |||
14 | --- | 15 | --- |
15 | Makefile.am | 12 +++ | 16 | Makefile.am | 12 +++ |
16 | README | 6 +- | 17 | README | 4 +- |
17 | TODO | 1 + | 18 | TODO | 1 + |
18 | configure.ac | 18 +++++ | 19 | configure.ac | 18 +++++ |
19 | src/udev/udev-builtin-firmware.c | 154 +++++++++++++++++++++++++++++++++++++++ | 20 | src/udev/udev-builtin-firmware.c | 154 +++++++++++++++++++++++++++++++++++++++ |
20 | src/udev/udev-builtin.c | 3 + | 21 | src/udev/udev-builtin.c | 3 + |
21 | src/udev/udev.h | 6 ++ | 22 | src/udev/udev.h | 6 ++ |
22 | src/udev/udevd.c | 13 ++++ | 23 | src/udev/udevd.c | 13 ++++ |
23 | 8 files changed, 210 insertions(+), 3 deletions(-) | 24 | 8 files changed, 209 insertions(+), 2 deletions(-) |
24 | create mode 100644 src/udev/udev-builtin-firmware.c | 25 | create mode 100644 src/udev/udev-builtin-firmware.c |
25 | 26 | ||
26 | diff --git a/Makefile.am b/Makefile.am | 27 | diff --git a/Makefile.am b/Makefile.am |
27 | index 3010b01..229492a 100644 | 28 | index c2b4a99d2..692d7bb95 100644 |
28 | --- a/Makefile.am | 29 | --- a/Makefile.am |
29 | +++ b/Makefile.am | 30 | +++ b/Makefile.am |
30 | @@ -3791,6 +3791,18 @@ libudev_core_la_LIBADD = \ | 31 | @@ -3985,6 +3985,18 @@ libudev_core_la_LIBADD = \ |
31 | $(BLKID_LIBS) \ | 32 | $(BLKID_LIBS) \ |
32 | $(KMOD_LIBS) | 33 | $(KMOD_LIBS) |
33 | 34 | ||
@@ -47,17 +48,10 @@ index 3010b01..229492a 100644 | |||
47 | libudev_core_la_SOURCES += \ | 48 | libudev_core_la_SOURCES += \ |
48 | src/udev/udev-builtin-kmod.c | 49 | src/udev/udev-builtin-kmod.c |
49 | diff --git a/README b/README | 50 | diff --git a/README b/README |
50 | index 9f5bc93..f60ae11 100644 | 51 | index 60388eebe..e21976393 100644 |
51 | --- a/README | 52 | --- a/README |
52 | +++ b/README | 53 | +++ b/README |
53 | @@ -50,14 +50,14 @@ REQUIREMENTS: | 54 | @@ -61,8 +61,8 @@ REQUIREMENTS: |
54 | CONFIG_PROC_FS | ||
55 | CONFIG_FHANDLE (libudev, mount and bind mount handling) | ||
56 | |||
57 | - udev will fail to work with the legacy sysfs layout: | ||
58 | + Udev will fail to work with the legacy sysfs layout: | ||
59 | CONFIG_SYSFS_DEPRECATED=n | ||
60 | |||
61 | Legacy hotplug slows down the system and confuses udev: | 55 | Legacy hotplug slows down the system and confuses udev: |
62 | CONFIG_UEVENT_HELPER_PATH="" | 56 | CONFIG_UEVENT_HELPER_PATH="" |
63 | 57 | ||
@@ -69,10 +63,10 @@ index 9f5bc93..f60ae11 100644 | |||
69 | 63 | ||
70 | Some udev rules and virtualization detection relies on it: | 64 | Some udev rules and virtualization detection relies on it: |
71 | diff --git a/TODO b/TODO | 65 | diff --git a/TODO b/TODO |
72 | index baaac94..1ab1691 100644 | 66 | index 61efa5e9f..67ccac224 100644 |
73 | --- a/TODO | 67 | --- a/TODO |
74 | +++ b/TODO | 68 | +++ b/TODO |
75 | @@ -658,6 +658,7 @@ Features: | 69 | @@ -740,6 +740,7 @@ Features: |
76 | * initialize the hostname from the fs label of /, if /etc/hostname does not exist? | 70 | * initialize the hostname from the fs label of /, if /etc/hostname does not exist? |
77 | 71 | ||
78 | * udev: | 72 | * udev: |
@@ -81,11 +75,11 @@ index baaac94..1ab1691 100644 | |||
81 | - kill scsi_id | 75 | - kill scsi_id |
82 | - add trigger --subsystem-match=usb/usb_device device | 76 | - add trigger --subsystem-match=usb/usb_device device |
83 | diff --git a/configure.ac b/configure.ac | 77 | diff --git a/configure.ac b/configure.ac |
84 | index dfc0bd3..1de0066 100644 | 78 | index b53ca1f1a..1150ca50e 100644 |
85 | --- a/configure.ac | 79 | --- a/configure.ac |
86 | +++ b/configure.ac | 80 | +++ b/configure.ac |
87 | @@ -1394,6 +1394,23 @@ AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"]) | 81 | @@ -1522,6 +1522,23 @@ AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"]) |
88 | AC_ARG_ENABLE(hwdb, [AC_HELP_STRING([--disable-hwdb], [disable hardware database support])], | 82 | AC_ARG_ENABLE(hwdb, [AS_HELP_STRING([--disable-hwdb], [disable hardware database support])], |
89 | enable_hwdb=$enableval, enable_hwdb=yes) | 83 | enable_hwdb=$enableval, enable_hwdb=yes) |
90 | AM_CONDITIONAL(ENABLE_HWDB, [test x$enable_hwdb = xyes]) | 84 | AM_CONDITIONAL(ENABLE_HWDB, [test x$enable_hwdb = xyes]) |
91 | +AC_ARG_WITH(firmware-path, | 85 | +AC_ARG_WITH(firmware-path, |
@@ -108,17 +102,17 @@ index dfc0bd3..1de0066 100644 | |||
108 | 102 | ||
109 | # ------------------------------------------------------------------------------ | 103 | # ------------------------------------------------------------------------------ |
110 | have_manpages=no | 104 | have_manpages=no |
111 | @@ -1698,6 +1715,7 @@ AC_MSG_RESULT([ | 105 | @@ -1839,6 +1856,7 @@ AC_MSG_RESULT([ |
112 | SysV init scripts: ${SYSTEM_SYSVINIT_PATH} | 106 | SysV init scripts: ${SYSTEM_SYSVINIT_PATH} |
113 | SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH} | 107 | SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH} |
114 | Build Python: ${PYTHON} | 108 | build Python: ${PYTHON} |
115 | + firmware path: ${FIRMWARE_PATH} | 109 | + firmware path: ${FIRMWARE_PATH} |
116 | PAM modules dir: ${with_pamlibdir} | 110 | PAM modules dir: ${with_pamlibdir} |
117 | PAM configuration dir: ${with_pamconfdir} | 111 | PAM configuration dir: ${with_pamconfdir} |
118 | D-Bus policy dir: ${with_dbuspolicydir} | 112 | RPM macros dir: ${with_rpmmacrosdir} |
119 | diff --git a/src/udev/udev-builtin-firmware.c b/src/udev/udev-builtin-firmware.c | 113 | diff --git a/src/udev/udev-builtin-firmware.c b/src/udev/udev-builtin-firmware.c |
120 | new file mode 100644 | 114 | new file mode 100644 |
121 | index 0000000..bd8c2fb | 115 | index 000000000..bd8c2fb96 |
122 | --- /dev/null | 116 | --- /dev/null |
123 | +++ b/src/udev/udev-builtin-firmware.c | 117 | +++ b/src/udev/udev-builtin-firmware.c |
124 | @@ -0,0 +1,154 @@ | 118 | @@ -0,0 +1,154 @@ |
@@ -277,7 +271,7 @@ index 0000000..bd8c2fb | |||
277 | + .run_once = true, | 271 | + .run_once = true, |
278 | +}; | 272 | +}; |
279 | diff --git a/src/udev/udev-builtin.c b/src/udev/udev-builtin.c | 273 | diff --git a/src/udev/udev-builtin.c b/src/udev/udev-builtin.c |
280 | index e6b36f1..cd9947e 100644 | 274 | index e6b36f124..cd9947e2a 100644 |
281 | --- a/src/udev/udev-builtin.c | 275 | --- a/src/udev/udev-builtin.c |
282 | +++ b/src/udev/udev-builtin.c | 276 | +++ b/src/udev/udev-builtin.c |
283 | @@ -31,6 +31,9 @@ static const struct udev_builtin *builtins[] = { | 277 | @@ -31,6 +31,9 @@ static const struct udev_builtin *builtins[] = { |
@@ -291,10 +285,10 @@ index e6b36f1..cd9947e 100644 | |||
291 | [UDEV_BUILTIN_INPUT_ID] = &udev_builtin_input_id, | 285 | [UDEV_BUILTIN_INPUT_ID] = &udev_builtin_input_id, |
292 | [UDEV_BUILTIN_KEYBOARD] = &udev_builtin_keyboard, | 286 | [UDEV_BUILTIN_KEYBOARD] = &udev_builtin_keyboard, |
293 | diff --git a/src/udev/udev.h b/src/udev/udev.h | 287 | diff --git a/src/udev/udev.h b/src/udev/udev.h |
294 | index 8433e8d..d32366d 100644 | 288 | index c0cb7eae8..9f0f1cf13 100644 |
295 | --- a/src/udev/udev.h | 289 | --- a/src/udev/udev.h |
296 | +++ b/src/udev/udev.h | 290 | +++ b/src/udev/udev.h |
297 | @@ -148,6 +148,9 @@ enum udev_builtin_cmd { | 291 | @@ -150,6 +150,9 @@ enum udev_builtin_cmd { |
298 | UDEV_BUILTIN_BLKID, | 292 | UDEV_BUILTIN_BLKID, |
299 | #endif | 293 | #endif |
300 | UDEV_BUILTIN_BTRFS, | 294 | UDEV_BUILTIN_BTRFS, |
@@ -304,7 +298,7 @@ index 8433e8d..d32366d 100644 | |||
304 | UDEV_BUILTIN_HWDB, | 298 | UDEV_BUILTIN_HWDB, |
305 | UDEV_BUILTIN_INPUT_ID, | 299 | UDEV_BUILTIN_INPUT_ID, |
306 | UDEV_BUILTIN_KEYBOARD, | 300 | UDEV_BUILTIN_KEYBOARD, |
307 | @@ -176,6 +179,9 @@ struct udev_builtin { | 301 | @@ -178,6 +181,9 @@ struct udev_builtin { |
308 | extern const struct udev_builtin udev_builtin_blkid; | 302 | extern const struct udev_builtin udev_builtin_blkid; |
309 | #endif | 303 | #endif |
310 | extern const struct udev_builtin udev_builtin_btrfs; | 304 | extern const struct udev_builtin udev_builtin_btrfs; |
@@ -315,7 +309,7 @@ index 8433e8d..d32366d 100644 | |||
315 | extern const struct udev_builtin udev_builtin_input_id; | 309 | extern const struct udev_builtin udev_builtin_input_id; |
316 | extern const struct udev_builtin udev_builtin_keyboard; | 310 | extern const struct udev_builtin udev_builtin_keyboard; |
317 | diff --git a/src/udev/udevd.c b/src/udev/udevd.c | 311 | diff --git a/src/udev/udevd.c b/src/udev/udevd.c |
318 | index d336ee0..81e5dc5 100644 | 312 | index acbddd418..20347b402 100644 |
319 | --- a/src/udev/udevd.c | 313 | --- a/src/udev/udevd.c |
320 | +++ b/src/udev/udevd.c | 314 | +++ b/src/udev/udevd.c |
321 | @@ -125,6 +125,9 @@ struct event { | 315 | @@ -125,6 +125,9 @@ struct event { |
@@ -353,5 +347,5 @@ index d336ee0..81e5dc5 100644 | |||
353 | if (event->devpath[common] == '/') { | 347 | if (event->devpath[common] == '/') { |
354 | event->delaying_seqnum = loop_event->seqnum; | 348 | event->delaying_seqnum = loop_event->seqnum; |
355 | -- | 349 | -- |
356 | 2.10.2 | 350 | 2.13.2 |
357 | 351 | ||