diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-11-29 20:49:56 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-04 11:23:37 +0000 |
| commit | d5813d502a5357a2a1c2ebb8895429768667c9ca (patch) | |
| tree | 4b2009816da7a7dfd159d833acc8bb6ca7257d42 /meta/recipes-core/udev/eudev_3.2.14.bb | |
| parent | 8bea1bd57c02c57c60308bb8a9a99d8474f33b72 (diff) | |
| download | poky-d5813d502a5357a2a1c2ebb8895429768667c9ca.tar.gz | |
eudev: Upgrade 3.2.12 -> 3.2.14
Drop merged patches:
0001-Export-dummies-for.patch
0002-Bump-udev-version-to-251.patch
Boian Bonev (13):
Update as per IRC discussion
Bump udev version to 251
Export dummies for
bump version to 3.2.14
Fix := not preventing further assignments to RUN
Add /usr/local/lib/udev/rules.d
Move the changes from udev.7 to udev.xml
Regenerate according to 0cf14fb and e5e4013
Improve wording and restore lines lost in merges
Improve wording
Tabs to spaces
Ensure that standard file descriptors are open
Commit the generated man page
NaofumiHonda (1):
Clear sysattr cache if a null pointer is passed (#255)
Vivien Kraus (6):
Let libudev find hwdb.bin under UDEV_HWDB_BIN
Add a generic --output argument to udevadm hwdb
Dynamically get the udevadm hwdb files with a path variable
fixup! Dynamically get the udevadm hwdb files with a path variable
Remove references to /run/udev/hwdb.d
Clarify the /etc/udev/hwdb.d file override with respect to UDEV_HWDB_PATH
(From OE-Core rev: 2e0f552cac05c2b9f5a80ac396374a7987238a34)
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev/eudev_3.2.14.bb')
| -rw-r--r-- | meta/recipes-core/udev/eudev_3.2.14.bb | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/eudev_3.2.14.bb b/meta/recipes-core/udev/eudev_3.2.14.bb new file mode 100644 index 0000000000..d0758691bd --- /dev/null +++ b/meta/recipes-core/udev/eudev_3.2.14.bb | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | SUMMARY = "eudev is a fork of systemd's udev" | ||
| 2 | HOMEPAGE = "https://github.com/eudev-project/eudev" | ||
| 3 | DESCRIPTION = "eudev is Gentoo's fork of udev, systemd's device file manager for the Linux kernel. It manages device nodes in /dev and handles all user space actions when adding or removing devices." | ||
| 4 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
| 5 | LICENSE:libudev = "LGPL-2.1-or-later" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
| 7 | |||
| 8 | DEPENDS = "gperf-native" | ||
| 9 | |||
| 10 | PROVIDES = "udev" | ||
| 11 | |||
| 12 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz \ | ||
| 13 | file://init \ | ||
| 14 | file://local.rules \ | ||
| 15 | " | ||
| 16 | |||
| 17 | SRC_URI[sha256sum] = "8da4319102f24abbf7fff5ce9c416af848df163b29590e666d334cc1927f006f" | ||
| 18 | |||
| 19 | GITHUB_BASE_URI = "https://github.com/eudev-project/eudev/releases" | ||
| 20 | |||
| 21 | inherit autotools update-rc.d qemu pkgconfig features_check manpages github-releases | ||
| 22 | |||
| 23 | CONFLICT_DISTRO_FEATURES = "systemd" | ||
| 24 | |||
| 25 | EXTRA_OECONF = " \ | ||
| 26 | --sbindir=${base_sbindir} \ | ||
| 27 | --with-rootlibdir=${base_libdir} \ | ||
| 28 | --with-rootlibexecdir=${nonarch_base_libdir}/udev \ | ||
| 29 | --with-rootprefix= \ | ||
| 30 | " | ||
| 31 | |||
| 32 | PACKAGECONFIG ?= "blkid hwdb kmod \ | ||
| 33 | ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ | ||
| 34 | " | ||
| 35 | PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" | ||
| 36 | PACKAGECONFIG[hwdb] = "--enable-hwdb,--disable-hwdb" | ||
| 37 | PACKAGECONFIG[kmod] = "--enable-kmod,--disable-kmod,kmod" | ||
| 38 | PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages" | ||
| 39 | PACKAGECONFIG[rule-generator] = "--enable-rule-generator,--disable-rule-generator" | ||
| 40 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" | ||
| 41 | |||
| 42 | do_install:append() { | ||
| 43 | install -d ${D}${sysconfdir}/init.d | ||
| 44 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev | ||
| 45 | sed -i s%@UDEVD@%${base_sbindir}/udevd% ${D}${sysconfdir}/init.d/udev | ||
| 46 | sed -i s%@KMOD@%${base_bindir}/kmod% ${D}${sysconfdir}/init.d/udev | ||
| 47 | |||
| 48 | install -d ${D}${sysconfdir}/udev/rules.d | ||
| 49 | install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules | ||
| 50 | |||
| 51 | # Use classic network interface naming scheme | ||
| 52 | touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules | ||
| 53 | } | ||
| 54 | |||
| 55 | do_install:prepend:class-target () { | ||
| 56 | # Remove references to buildmachine | ||
| 57 | sed -i -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
| 58 | ${B}/src/udev/keyboard-keys-from-name.h | ||
| 59 | } | ||
| 60 | |||
| 61 | INITSCRIPT_NAME = "udev" | ||
| 62 | INITSCRIPT_PARAMS = "start 04 S ." | ||
| 63 | |||
| 64 | PACKAGE_BEFORE_PN = "libudev ${PN}-hwdb" | ||
| 65 | |||
| 66 | FILES:${PN} += "${nonarch_base_libdir}/udev" | ||
| 67 | FILES:libudev = "${base_libdir}/libudev.so.*" | ||
| 68 | FILES:${PN}-hwdb = "${sysconfdir}/udev/hwdb.d" | ||
| 69 | |||
| 70 | RDEPENDS:${PN}-hwdb += "eudev" | ||
| 71 | RDEPENDS:${PN} += "kmod" | ||
| 72 | |||
| 73 | RPROVIDES:${PN} = "hotplug udev" | ||
| 74 | RPROVIDES:${PN}-hwdb += "udev-hwdb" | ||
| 75 | |||
| 76 | PACKAGE_WRITE_DEPS += "qemu-native" | ||
| 77 | pkg_postinst:${PN}-hwdb () { | ||
| 78 | if test -n "$D"; then | ||
| 79 | $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} | ||
| 80 | else | ||
| 81 | udevadm hwdb --update | ||
| 82 | fi | ||
| 83 | } | ||
| 84 | |||
| 85 | pkg_prerm:${PN}-hwdb () { | ||
| 86 | rm -f $D${sysconfdir}/udev/hwdb.bin | ||
| 87 | } | ||
