]> code.ossystems Code Review - openembedded-core.git/commitdiff
eudev: add PACKAGECONFIG for hwdb
authorRoss Burton <ross.burton@intel.com>
Wed, 27 Apr 2016 11:54:51 +0000 (12:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jun 2016 18:33:25 +0000 (19:33 +0100)
Some users may not want the hwdb at all, so add a PACKAGECONFIG option to
disable building it entirely.

(From OE-Core rev: 7006d3084bd4d6aab2ca64d052df3a014abaf813)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
meta/recipes-core/udev/eudev_3.1.5.bb

index ea19ec4138743a9fc1c99fd823dd7b5f09f07042..e42630f5cf56bb9db27deac2600304b40fe6ac80 100644 (file)
@@ -32,6 +32,9 @@ EXTRA_OECONF = " \
     --with-rootprefix= \
 "
 
+PACKAGECONFIG ??= "hwdb"
+PACKAGECONFIG[hwdb] = "--enable-hwdb,--disable-hwdb"
+
 do_install_append() {
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
@@ -104,4 +107,3 @@ pkg_postinst_eudev-hwdb () {
 pkg_prerm_eudev-hwdb () {
         rm -f $D${sysconfdir}/udev/hwdb.bin
 }
-