summaryrefslogtreecommitdiff
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-02-21 16:41:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-26 22:42:37 +0000
commit3e8da06c1faeb7884689a8af959cd9fa5bdf4e4f (patch)
tree55343fc53bf93b844060f235f124999c4e0b3354 /meta/recipes-core
parent69abfae6c81c8d7e7920817a55c3bea84615446d (diff)
downloadopenembedded-core-3e8da06c1faeb7884689a8af959cd9fa5bdf4e4f.tar.gz
openembedded-core-3e8da06c1faeb7884689a8af959cd9fa5bdf4e4f.tar.bz2
openembedded-core-3e8da06c1faeb7884689a8af959cd9fa5bdf4e4f.zip
systemd: split out the hwdb data
The hardware databases are not essential and also quite large, so split them out into udev-hwdb. Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_197.bb22
1 files changed, 19 insertions, 3 deletions
diff --git a/meta/recipes-core/systemd/systemd_197.bb b/meta/recipes-core/systemd/systemd_197.bb
index 56ced66b01..a006ec8e92 100644
--- a/meta/recipes-core/systemd/systemd_197.bb
+++ b/meta/recipes-core/systemd/systemd_197.bb
@@ -180,13 +180,13 @@ RRECOMMENDS_${PN} += "systemd-serialgetty \
kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 \
"
-PACKAGES =+ "udev-dbg udev udev-consolekit udev-utils"
+PACKAGES =+ "udev-dbg udev udev-consolekit udev-utils udev-hwdb"
FILES_udev-dbg += "/lib/udev/.debug"
RDEPENDS_udev += "udev-utils"
RPROVIDES_udev = "hotplug"
-RRECOMMENDS_udev += "udev-extraconf"
+RRECOMMENDS_udev += "udev-extraconf udev-hwdb"
FILES_udev += "${base_sbindir}/udevd \
${base_libdir}/systemd/systemd-udevd \
@@ -209,7 +209,6 @@ FILES_udev += "${base_sbindir}/udevd \
/lib/udev/rules.d/78*.rules \
/lib/udev/rules.d/8*.rules \
/lib/udev/rules.d/95*.rules \
- ${base_libdir}/udev/hwdb.d \
${sysconfdir}/udev \
${systemd_unitdir}/system/*udev* \
${systemd_unitdir}/system/*.wants/*udev* \
@@ -220,6 +219,8 @@ RDEPENDS_udev-consolekit += "${@base_contains('DISTRO_FEATURES', 'x11', 'console
FILES_udev-utils = "${bindir}/udevadm"
+FILES_udev-hwdb = "${base_libdir}/udev/hwdb.d"
+
# TODO:
# u-a for runlevel and telinit
@@ -239,6 +240,21 @@ update-alternatives --remove shutdown ${base_bindir}/systemctl
update-alternatives --remove poweroff ${base_bindir}/systemctl
}
+pkg_postinst_udev-hwdb () {
+ if test -n "$D"; then
+ exit 1
+ fi
+
+ udevadm hwdb --update
+}
+
+pkg_prerm_udev-hwdb () {
+ if test -n "$D"; then
+ exit 1
+ fi
+
+ rm -f ${sysconfdir}/udev/hwdb.bin
+}
# As this recipe builds udev, respect the systemd DISTRO_FEATURE so we don't try
# building udev and systemd in world builds.