diff options
author | Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | 2016-03-14 23:09:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-20 22:57:55 +0000 |
commit | 20038e0e13685ebc6fcbbbb2d96695670e33e3e3 (patch) | |
tree | ca27731164c93b9934bf6e6b213680de87817431 /meta/recipes-core | |
parent | 0be2ab32f690a2fcba0e821abe11460958bbc6dc (diff) | |
download | openembedded-core-20038e0e13685ebc6fcbbbb2d96695670e33e3e3.tar.gz openembedded-core-20038e0e13685ebc6fcbbbb2d96695670e33e3e3.tar.bz2 openembedded-core-20038e0e13685ebc6fcbbbb2d96695670e33e3e3.zip |
eudev: split eudev-hwdb from eudev
The eudev recipe included the hwdb.d directory by default,
which ended up making the eudev package a lot heavier than
the old udev, this patch splits the eudev-hwdb package to
avoid using unecessary space when required
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/udev/eudev_3.1.5.bb | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/eudev_3.1.5.bb b/meta/recipes-core/udev/eudev_3.1.5.bb index e94e0dc33d..ea19ec4138 100644 --- a/meta/recipes-core/udev/eudev_3.1.5.bb +++ b/meta/recipes-core/udev/eudev_3.1.5.bb @@ -23,7 +23,7 @@ UPSTREAM_CHECK_URI = "https://github.com/gentoo/eudev/releases" SRC_URI[md5sum] = "e130f892d8744e292cb855db79935f68" SRC_URI[sha256sum] = "ce9d5fa91e3a42c7eb95512ca0fa2a631e89833053066bb6cdf42046b2a88553" -inherit autotools update-rc.d +inherit autotools update-rc.d qemu EXTRA_OECONF = " \ --sbindir=${base_sbindir} \ @@ -69,6 +69,8 @@ INITSCRIPT_PARAMS_udev-cache = "start 36 S ." PACKAGES =+ "libudev" PACKAGES =+ "udev-cache" +PACKAGES =+ "eudev-hwdb" + FILES_${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm" FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \ @@ -77,12 +79,29 @@ FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \ ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc" FILES_libudev = "${base_libdir}/libudev.so.*" FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache" +FILES_eudev-hwdb = "${sysconfdir}/udev/hwdb.d" + +RDEPENDS_eudev-hwdb += "eudev" + +RRECOMMENDS_${PN} += "udev-cache eudev-hwdb" + +RPROVIDES_${PN} = "hotplug udev" python () { if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES") } -RRECOMMENDS_${PN} += "udev-cache" +pkg_postinst_eudev-hwdb () { + if test -n "$D"; then + ${@qemu_run_binary(d, '$D', '${bindir}/udevadm')} hwdb --update --root $D + chown root:root $D${sysconfdir}/udev/hwdb.bin + else + udevadm hwdb --update + fi +} + +pkg_prerm_eudev-hwdb () { + rm -f $D${sysconfdir}/udev/hwdb.bin +} -RPROVIDES_${PN} = "hotplug udev" |