diff options
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r-- | meta/recipes-core/udev/eudev_3.2.5.bb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-core/udev/eudev_3.2.5.bb b/meta/recipes-core/udev/eudev_3.2.5.bb index efd62c6495..592dd8f22a 100644 --- a/meta/recipes-core/udev/eudev_3.2.5.bb +++ b/meta/recipes-core/udev/eudev_3.2.5.bb | |||
@@ -50,6 +50,10 @@ do_install_append() { | |||
50 | 50 | ||
51 | # hid2hci has moved to bluez4. removed in udev as of version 169 | 51 | # hid2hci has moved to bluez4. removed in udev as of version 169 |
52 | rm -f ${D}${base_libdir}/udev/hid2hci | 52 | rm -f ${D}${base_libdir}/udev/hid2hci |
53 | |||
54 | # duplicate udevadm for postinst script | ||
55 | install -d ${D}${libexecdir} | ||
56 | ln ${D}${bindir}/udevadm ${D}${libexecdir}/${MLPREFIX}udevadm | ||
53 | } | 57 | } |
54 | 58 | ||
55 | do_install_prepend_class-target () { | 59 | do_install_prepend_class-target () { |
@@ -81,12 +85,7 @@ RPROVIDES_eudev-hwdb += "udev-hwdb" | |||
81 | PACKAGE_WRITE_DEPS += "qemu-native" | 85 | PACKAGE_WRITE_DEPS += "qemu-native" |
82 | pkg_postinst_eudev-hwdb () { | 86 | pkg_postinst_eudev-hwdb () { |
83 | if test -n "$D"; then | 87 | if test -n "$D"; then |
84 | if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true','false', d)}; then | 88 | $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} |
85 | ${@qemu_run_binary(d, '$D', '${bindir}/udevadm')} hwdb --update --root $D | ||
86 | chown root:root $D${sysconfdir}/udev/hwdb.bin | ||
87 | else | ||
88 | $INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX} | ||
89 | fi | ||
90 | else | 89 | else |
91 | udevadm hwdb --update | 90 | udevadm hwdb --update |
92 | fi | 91 | fi |