eudev: add enable/disable hwdb option

This option enables/disables installation of the eudev hardware database,
which provides various extra properties for known devices.
Enabling this option adds ~5MB to the rootfs size.

The option is enabled by default in order to preserve old behavior.

[Peter: extend commit message]
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Yegor Yefremov 2015-06-15 21:53:34 +02:00 committed by Peter Korsgaard
parent c7a0169508
commit b56265f447
2 changed files with 12 additions and 0 deletions

View File

@ -27,6 +27,12 @@ config BR2_PACKAGE_EUDEV_RULES_GEN
help
Enable persistent rules generator
config BR2_PACKAGE_EUDEV_ENABLE_HWDB
bool "enable hwdb installation"
default y
help
Enables hardware database installation to /etc/udev/hwdb.d
endif
comment "eudev needs eudev /dev management"

View File

@ -31,6 +31,12 @@ ifeq ($(BR2_PACKAGE_EUDEV_RULES_GEN),y)
EUDEV_CONF_OPTS += --enable-rule_generator
endif
ifeq ($(BR2_PACKAGE_EUDEV_ENABLE_HWDB),y)
EUDEV_CONF_OPTS += --enable-hwdb
else
EUDEV_CONF_OPTS += --disable-hwdb
endif
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
EUDEV_CONF_OPTS += --enable-gudev
EUDEV_DEPENDENCIES += libglib2