Skip to contentSkip to conversation

eudev: add PACKAGECONFIG for hwdb

PATCH New Ross Burton 1 participant 1 message Apr 27, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eudev: add PACKAGECONFIG for hwdb

Some users may not want the hwdb at all, so add a PACKAGECONFIG option to disable building it entirely.

---
 meta/recipes-core/udev/eudev_3.1.5.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/udev/eudev_3.1.5.bb +3 -1
index ea19ec4..e42630f 100644
@@ -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
 }
-
Signature · 1 line
2.8.0.rc3