Update Buildroot 2019.02.8
This commit is contained in:
@@ -29,8 +29,9 @@ config BR2_PACKAGE_EUDEV_RULES_GEN
|
||||
config BR2_PACKAGE_EUDEV_ENABLE_HWDB
|
||||
bool "enable hwdb installation"
|
||||
default y
|
||||
select BR2_PACKAGE_HOST_EUDEV # for udevadm, during target-finalize
|
||||
help
|
||||
Enables hardware database installation to /etc/udev/hwdb.d
|
||||
Enables hardware database installation to /etc/udev/hwdb.bin
|
||||
|
||||
endif
|
||||
|
||||
|
||||
3
buildroot/package/eudev/Config.in.host
Normal file
3
buildroot/package/eudev/Config.in.host
Normal file
@@ -0,0 +1,3 @@
|
||||
# Select this if you need host eudev tools (e.g. udevadm)
|
||||
config BR2_PACKAGE_HOST_EUDEV
|
||||
bool
|
||||
@@ -51,6 +51,44 @@ endef
|
||||
# Required by default rules for input devices
|
||||
define EUDEV_USERS
|
||||
- - input -1 * - - - Input device group
|
||||
- - render -1 * - - - DRI rendering nodes
|
||||
- - kvm -1 * - - - kvm nodes
|
||||
endef
|
||||
|
||||
HOST_EUDEV_DEPENDENCIES = host-gperf host-pkgconf
|
||||
|
||||
HOST_EUDEV_SYSCONFDIR = $(if $(BR2_PACKAGE_SYSTEMD),/usr/lib,/etc)
|
||||
HOST_EUDEV_CONF_OPTS = \
|
||||
--prefix=/usr \
|
||||
--sbindir=/sbin \
|
||||
--libexecdir=/lib \
|
||||
--with-rootlibdir=/lib \
|
||||
--sysconfdir=$(HOST_EUDEV_SYSCONFDIR) \
|
||||
--disable-blkid \
|
||||
--disable-introspection \
|
||||
--disable-kmod \
|
||||
--disable-manpages \
|
||||
--disable-rule-generator \
|
||||
--disable-selinux \
|
||||
--enable-hwdb
|
||||
|
||||
define HOST_EUDEV_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/src/udev/udevadm \
|
||||
$(HOST_DIR)/bin/udevadm
|
||||
endef
|
||||
|
||||
define HOST_EUDEV_BUILD_HWDB
|
||||
$(HOST_DIR)/bin/udevadm hwdb --update --root $(TARGET_DIR)
|
||||
endef
|
||||
HOST_EUDEV_TARGET_FINALIZE_HOOKS += HOST_EUDEV_BUILD_HWDB
|
||||
|
||||
# Note: this will run in the filesystem context, so will use a copy
|
||||
# of tharget/, not the real one, so the files are still available on
|
||||
# re-builds (foo-rebuild, etc...)
|
||||
define HOST_EUDEV_RM_HWDB_SRC
|
||||
rm -rf $(TARGET_DIR)/$(HOST_EUDEV_SYSCONFDIR)/udev/hwdb.d/
|
||||
endef
|
||||
HOST_EUDEV_ROOTFS_PRE_CMD_HOOKS += HOST_EUDEV_RM_HWDB_SRC
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user