2
1

udev.mk 998 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #############################################################
  2. #
  3. # udev
  4. #
  5. #############################################################
  6. UDEV_VERSION = 173
  7. UDEV_SOURCE = udev-$(UDEV_VERSION).tar.bz2
  8. UDEV_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/hotplug/
  9. UDEV_INSTALL_STAGING = YES
  10. UDEV_CONF_OPT = \
  11. --sbindir=/sbin \
  12. --with-rootlibdir=/lib \
  13. --libexecdir=/lib/udev \
  14. --disable-introspection
  15. UDEV_DEPENDENCIES = host-gperf host-pkg-config
  16. ifeq ($(BR2_PACKAGE_UDEV_ALL_EXTRAS),y)
  17. UDEV_DEPENDENCIES += libusb libusb-compat acl usbutils hwdata libglib2
  18. UDEV_CONF_OPT += \
  19. --with-pci-ids-path=$(TARGET_DIR)/usr/share/hwdata/pci.ids \
  20. --with-usb-ids-path=$(TARGET_DIR)/usr/share/hwdata/usb.ids \
  21. --enable-udev_acl
  22. else
  23. UDEV_CONF_OPT += \
  24. --disable-hwdb \
  25. --disable-gudev
  26. endif
  27. define UDEV_INSTALL_INITSCRIPT
  28. $(INSTALL) -m 0755 package/udev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
  29. endef
  30. UDEV_POST_INSTALL_TARGET_HOOKS += UDEV_INSTALL_INITSCRIPT
  31. $(eval $(call AUTOTARGETS))