summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/udev
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2022-04-15 22:38:03 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-28 17:07:18 +0100
commit09d2ca20cbe0857a04014f8a362f03d1480f1748 (patch)
treee7250cf9e71d10ce96f6610ae932762739adc971 /meta/recipes-core/udev
parent9c2e7b1261e3b6bf4a5789eb11c59e936a2559c1 (diff)
downloadpoky-09d2ca20cbe0857a04014f8a362f03d1480f1748.tar.gz
update_udev_hwdb: fix multilib issue with systemd
It duplicates udevadm in systemd recipe to make it could run update_udev_hwdb with multilib enabled. Since systemd last update, it deploys a shared library libsystemd-shared-250.so in /lib/systemd/. The library will be overwritten when multilib enabled. Then if both udev-hwdb and lib32-udev-hwdb are installed, it fails to run the multilib version postinstall intercept update_udev_hwdb: | /path/to/build/tmp-glibc/work/intel_x86_64-wrs-linux/wrlinux-image-small/1.0-r1/rootfs/usr/libexec/lib32-udevadm: error while loading shared libraries: libsystemd-shared-250.so: wrong ELF class: ELFCLASS64 `udevadm hwdb --update` just concatenates .hwdb files in dirs /etc/udev/hwdb.d and /lib/udev/hwdb.d. The output file hwdb.bin is identical with the one created by lib32-udevadm. So do NOT duplicate lib32-udevadm in systemd and eudev. And update intercept script update_udev_hwdb that re-run udevadm with same arch qemuwrapper if run ${binprefix}qemuwrapper failed. (From OE-Core rev: 74fe1b5af064f644a7d555b61527bb7d02cc30b8) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 3dba872a42c2be7d0865a30118984ab013850292) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r--meta/recipes-core/udev/eudev_3.2.10.bb4
1 files changed, 0 insertions, 4 deletions
diff --git a/meta/recipes-core/udev/eudev_3.2.10.bb b/meta/recipes-core/udev/eudev_3.2.10.bb
index dec16be046..ccc66ae131 100644
--- a/meta/recipes-core/udev/eudev_3.2.10.bb
+++ b/meta/recipes-core/udev/eudev_3.2.10.bb
@@ -51,10 +51,6 @@ do_install:append() {
51 51
52 # hid2hci has moved to bluez4. removed in udev as of version 169 52 # hid2hci has moved to bluez4. removed in udev as of version 169
53 rm -f ${D}${base_libdir}/udev/hid2hci 53 rm -f ${D}${base_libdir}/udev/hid2hci
54
55 # duplicate udevadm for postinst script
56 install -d ${D}${libexecdir}
57 ln ${D}${bindir}/udevadm ${D}${libexecdir}/${MLPREFIX}udevadm
58} 54}
59 55
60do_install:prepend:class-target () { 56do_install:prepend:class-target () {