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 | 99 |
1 files changed, 48 insertions, 51 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 3e3aa278bd..6308cc73ab 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 | |||
@@ -21,11 +21,11 @@ Signed-off-by: Jonathan Liu <net147@gmail.com> | |||
21 | 8 files changed, 214 insertions(+), 4 deletions(-) | 21 | 8 files changed, 214 insertions(+), 4 deletions(-) |
22 | create mode 100644 src/udev/udev-builtin-firmware.c | 22 | create mode 100644 src/udev/udev-builtin-firmware.c |
23 | 23 | ||
24 | diff --git a/Makefile.am b/Makefile.am | 24 | Index: git/Makefile.am |
25 | index bf04d31..9394700 100644 | 25 | =================================================================== |
26 | --- a/Makefile.am | 26 | --- git.orig/Makefile.am |
27 | +++ b/Makefile.am | 27 | +++ git/Makefile.am |
28 | @@ -3678,6 +3678,18 @@ libudev_core_la_LIBADD = \ | 28 | @@ -3470,6 +3470,18 @@ libudev_core_la_LIBADD = \ |
29 | $(BLKID_LIBS) \ | 29 | $(BLKID_LIBS) \ |
30 | $(KMOD_LIBS) | 30 | $(KMOD_LIBS) |
31 | 31 | ||
@@ -44,10 +44,10 @@ index bf04d31..9394700 100644 | |||
44 | if HAVE_KMOD | 44 | if HAVE_KMOD |
45 | libudev_core_la_SOURCES += \ | 45 | libudev_core_la_SOURCES += \ |
46 | src/udev/udev-builtin-kmod.c | 46 | src/udev/udev-builtin-kmod.c |
47 | diff --git a/README b/README | 47 | Index: git/README |
48 | index c722092..db382d2 100644 | 48 | =================================================================== |
49 | --- a/README | 49 | --- git.orig/README |
50 | +++ b/README | 50 | +++ git/README |
51 | @@ -36,7 +36,8 @@ LICENSE: | 51 | @@ -36,7 +36,8 @@ LICENSE: |
52 | - except src/udev/* which is (currently still) GPLv2, GPLv2+ | 52 | - except src/udev/* which is (currently still) GPLv2, GPLv2+ |
53 | 53 | ||
@@ -76,11 +76,11 @@ index c722092..db382d2 100644 | |||
76 | CONFIG_FW_LOADER_USER_HELPER=n | 76 | CONFIG_FW_LOADER_USER_HELPER=n |
77 | 77 | ||
78 | Some udev rules and virtualization detection relies on it: | 78 | Some udev rules and virtualization detection relies on it: |
79 | diff --git a/TODO b/TODO | 79 | Index: git/TODO |
80 | index 255a4f2..407bdd0 100644 | 80 | =================================================================== |
81 | --- a/TODO | 81 | --- git.orig/TODO |
82 | +++ b/TODO | 82 | +++ git/TODO |
83 | @@ -727,6 +727,7 @@ Features: | 83 | @@ -754,6 +754,7 @@ Features: |
84 | * ExecOnFailure=/usr/bin/foo | 84 | * ExecOnFailure=/usr/bin/foo |
85 | 85 | ||
86 | * udev: | 86 | * udev: |
@@ -88,11 +88,11 @@ index 255a4f2..407bdd0 100644 | |||
88 | - move to LGPL | 88 | - move to LGPL |
89 | - kill scsi_id | 89 | - kill scsi_id |
90 | - add trigger --subsystem-match=usb/usb_device device | 90 | - add trigger --subsystem-match=usb/usb_device device |
91 | diff --git a/configure.ac b/configure.ac | 91 | Index: git/configure.ac |
92 | index 97a29d6..13b80ce 100644 | 92 | =================================================================== |
93 | --- a/configure.ac | 93 | --- git.orig/configure.ac |
94 | +++ b/configure.ac | 94 | +++ git/configure.ac |
95 | @@ -1245,6 +1245,25 @@ fi | 95 | @@ -1268,6 +1268,26 @@ fi |
96 | AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"]) | 96 | AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"]) |
97 | 97 | ||
98 | # ------------------------------------------------------------------------------ | 98 | # ------------------------------------------------------------------------------ |
@@ -114,23 +114,23 @@ index 97a29d6..13b80ce 100644 | |||
114 | +AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ]) | 114 | +AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ]) |
115 | +AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"]) | 115 | +AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"]) |
116 | + | 116 | + |
117 | + | ||
117 | +# ------------------------------------------------------------------------------ | 118 | +# ------------------------------------------------------------------------------ |
118 | AC_ARG_ENABLE([gudev], | 119 | AC_ARG_ENABLE(hwdb, [AC_HELP_STRING([--disable-hwdb], [disable hardware database support])], |
119 | AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]), | 120 | enable_hwdb=$enableval, enable_hwdb=yes) |
120 | [], [enable_gudev=yes]) | 121 | AM_CONDITIONAL(ENABLE_HWDB, [test x$enable_hwdb = xyes]) |
121 | @@ -1533,6 +1552,7 @@ AC_MSG_RESULT([ | 122 | @@ -1574,6 +1594,7 @@ AC_MSG_RESULT([ |
123 | SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH} | ||
122 | Build Python: ${PYTHON} | 124 | Build Python: ${PYTHON} |
123 | Installation Python: ${PYTHON_BINARY} | ||
124 | sphinx binary: ${SPHINX_BUILD} | 125 | sphinx binary: ${SPHINX_BUILD} |
125 | + firmware path: ${FIRMWARE_PATH} | 126 | + firmware path: ${FIRMWARE_PATH} |
126 | PAM modules dir: ${with_pamlibdir} | 127 | PAM modules dir: ${with_pamlibdir} |
127 | PAM configuration dir: ${with_pamconfdir} | 128 | PAM configuration dir: ${with_pamconfdir} |
128 | D-Bus policy dir: ${with_dbuspolicydir} | 129 | D-Bus policy dir: ${with_dbuspolicydir} |
129 | diff --git a/src/udev/udev-builtin-firmware.c b/src/udev/udev-builtin-firmware.c | 130 | Index: git/src/udev/udev-builtin-firmware.c |
130 | new file mode 100644 | 131 | =================================================================== |
131 | index 0000000..bd8c2fb | ||
132 | --- /dev/null | 132 | --- /dev/null |
133 | +++ b/src/udev/udev-builtin-firmware.c | 133 | +++ git/src/udev/udev-builtin-firmware.c |
134 | @@ -0,0 +1,154 @@ | 134 | @@ -0,0 +1,154 @@ |
135 | +/* | 135 | +/* |
136 | + * firmware - Kernel firmware loader | 136 | + * firmware - Kernel firmware loader |
@@ -286,11 +286,11 @@ index 0000000..bd8c2fb | |||
286 | + .help = "kernel firmware loader", | 286 | + .help = "kernel firmware loader", |
287 | + .run_once = true, | 287 | + .run_once = true, |
288 | +}; | 288 | +}; |
289 | diff --git a/src/udev/udev-builtin.c b/src/udev/udev-builtin.c | 289 | Index: git/src/udev/udev-builtin.c |
290 | index 1950ec2..f21c0b6 100644 | 290 | =================================================================== |
291 | --- a/src/udev/udev-builtin.c | 291 | --- git.orig/src/udev/udev-builtin.c |
292 | +++ b/src/udev/udev-builtin.c | 292 | +++ git/src/udev/udev-builtin.c |
293 | @@ -34,6 +34,9 @@ static const struct udev_builtin *builtins[] = { | 293 | @@ -30,6 +30,9 @@ static const struct udev_builtin *builti |
294 | [UDEV_BUILTIN_BLKID] = &udev_builtin_blkid, | 294 | [UDEV_BUILTIN_BLKID] = &udev_builtin_blkid, |
295 | #endif | 295 | #endif |
296 | [UDEV_BUILTIN_BTRFS] = &udev_builtin_btrfs, | 296 | [UDEV_BUILTIN_BTRFS] = &udev_builtin_btrfs, |
@@ -300,11 +300,11 @@ index 1950ec2..f21c0b6 100644 | |||
300 | [UDEV_BUILTIN_HWDB] = &udev_builtin_hwdb, | 300 | [UDEV_BUILTIN_HWDB] = &udev_builtin_hwdb, |
301 | [UDEV_BUILTIN_INPUT_ID] = &udev_builtin_input_id, | 301 | [UDEV_BUILTIN_INPUT_ID] = &udev_builtin_input_id, |
302 | [UDEV_BUILTIN_KEYBOARD] = &udev_builtin_keyboard, | 302 | [UDEV_BUILTIN_KEYBOARD] = &udev_builtin_keyboard, |
303 | diff --git a/src/udev/udev.h b/src/udev/udev.h | 303 | Index: git/src/udev/udev.h |
304 | index dece6ec..f7ee1e7 100644 | 304 | =================================================================== |
305 | --- a/src/udev/udev.h | 305 | --- git.orig/src/udev/udev.h |
306 | +++ b/src/udev/udev.h | 306 | +++ git/src/udev/udev.h |
307 | @@ -151,6 +151,9 @@ enum udev_builtin_cmd { | 307 | @@ -146,6 +146,9 @@ enum udev_builtin_cmd { |
308 | UDEV_BUILTIN_BLKID, | 308 | UDEV_BUILTIN_BLKID, |
309 | #endif | 309 | #endif |
310 | UDEV_BUILTIN_BTRFS, | 310 | UDEV_BUILTIN_BTRFS, |
@@ -314,7 +314,7 @@ index dece6ec..f7ee1e7 100644 | |||
314 | UDEV_BUILTIN_HWDB, | 314 | UDEV_BUILTIN_HWDB, |
315 | UDEV_BUILTIN_INPUT_ID, | 315 | UDEV_BUILTIN_INPUT_ID, |
316 | UDEV_BUILTIN_KEYBOARD, | 316 | UDEV_BUILTIN_KEYBOARD, |
317 | @@ -179,6 +182,9 @@ struct udev_builtin { | 317 | @@ -174,6 +177,9 @@ struct udev_builtin { |
318 | extern const struct udev_builtin udev_builtin_blkid; | 318 | extern const struct udev_builtin udev_builtin_blkid; |
319 | #endif | 319 | #endif |
320 | extern const struct udev_builtin udev_builtin_btrfs; | 320 | extern const struct udev_builtin udev_builtin_btrfs; |
@@ -324,21 +324,21 @@ index dece6ec..f7ee1e7 100644 | |||
324 | extern const struct udev_builtin udev_builtin_hwdb; | 324 | extern const struct udev_builtin udev_builtin_hwdb; |
325 | extern const struct udev_builtin udev_builtin_input_id; | 325 | extern const struct udev_builtin udev_builtin_input_id; |
326 | extern const struct udev_builtin udev_builtin_keyboard; | 326 | extern const struct udev_builtin udev_builtin_keyboard; |
327 | diff --git a/src/udev/udevd.c b/src/udev/udevd.c | 327 | Index: git/src/udev/udevd.c |
328 | index 99d4c89..71af1e1 100644 | 328 | =================================================================== |
329 | --- a/src/udev/udevd.c | 329 | --- git.orig/src/udev/udevd.c |
330 | +++ b/src/udev/udevd.c | 330 | +++ git/src/udev/udevd.c |
331 | @@ -99,6 +99,9 @@ struct event { | 331 | @@ -116,6 +116,9 @@ struct event { |
332 | dev_t devnum; | ||
333 | int ifindex; | ||
334 | bool is_block; | 332 | bool is_block; |
333 | sd_event_source *timeout_warning; | ||
334 | sd_event_source *timeout; | ||
335 | +#ifdef HAVE_FIRMWARE | 335 | +#ifdef HAVE_FIRMWARE |
336 | + bool nodelay; | 336 | + bool nodelay; |
337 | +#endif | 337 | +#endif |
338 | }; | 338 | }; |
339 | 339 | ||
340 | static inline struct event *node_to_event(struct udev_list_node *node) { | 340 | static inline struct event *node_to_event(struct udev_list_node *node) { |
341 | @@ -472,6 +475,10 @@ static int event_queue_insert(struct udev_device *dev) { | 341 | @@ -607,6 +610,10 @@ static int event_queue_insert(Manager *m |
342 | event->devnum = udev_device_get_devnum(dev); | 342 | event->devnum = udev_device_get_devnum(dev); |
343 | event->is_block = streq("block", udev_device_get_subsystem(dev)); | 343 | event->is_block = streq("block", udev_device_get_subsystem(dev)); |
344 | event->ifindex = udev_device_get_ifindex(dev); | 344 | event->ifindex = udev_device_get_ifindex(dev); |
@@ -349,7 +349,7 @@ index 99d4c89..71af1e1 100644 | |||
349 | 349 | ||
350 | log_debug("seq %llu queued, '%s' '%s'", udev_device_get_seqnum(dev), | 350 | log_debug("seq %llu queued, '%s' '%s'", udev_device_get_seqnum(dev), |
351 | udev_device_get_action(dev), udev_device_get_subsystem(dev)); | 351 | udev_device_get_action(dev), udev_device_get_subsystem(dev)); |
352 | @@ -548,6 +555,12 @@ static bool is_devpath_busy(struct event *event) { | 352 | @@ -692,6 +699,12 @@ static bool is_devpath_busy(Manager *man |
353 | return true; | 353 | return true; |
354 | } | 354 | } |
355 | 355 | ||
@@ -362,6 +362,3 @@ index 99d4c89..71af1e1 100644 | |||
362 | /* parent device event found */ | 362 | /* parent device event found */ |
363 | if (event->devpath[common] == '/') { | 363 | if (event->devpath[common] == '/') { |
364 | event->delaying_seqnum = loop_event->seqnum; | 364 | event->delaying_seqnum = loop_event->seqnum; |
365 | -- | ||
366 | 2.3.3 | ||
367 | |||