udev.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #############################################################
  2. #
  3. # udev
  4. #
  5. #############################################################
  6. UDEV_VERSION = 182
  7. UDEV_SOURCE = udev-$(UDEV_VERSION).tar.bz2
  8. UDEV_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/hotplug/
  9. UDEV_INSTALL_STAGING = YES
  10. # mq_getattr is in librt
  11. UDEV_CONF_ENV += LIBS=-lrt
  12. UDEV_CONF_OPT = \
  13. --sbindir=/sbin \
  14. --with-rootlibdir=/lib \
  15. --libexecdir=/lib \
  16. --with-usb-ids-path=/usr/share/hwdata/usb.ids \
  17. --with-pci-ids-path=/usr/share/hwdata/pci.ids \
  18. --with-firmware-path=/lib/firmware \
  19. --disable-introspection
  20. UDEV_DEPENDENCIES = host-gperf host-pkg-config util-linux kmod
  21. ifeq ($(BR2_PACKAGE_UDEV_RULES_GEN),y)
  22. UDEV_CONF_OPT += --enable-rule_generator
  23. endif
  24. ifeq ($(BR2_PACKAGE_UDEV_ALL_EXTRAS),y)
  25. UDEV_DEPENDENCIES += acl hwdata libglib2
  26. UDEV_CONF_OPT += \
  27. --enable-udev_acl
  28. else
  29. UDEV_CONF_OPT += \
  30. --disable-gudev
  31. endif
  32. ifeq ($(BR2_PACKAGE_SYSTEMD),y)
  33. UDEV_CONF_OPT += --with-systemdsystemunitdir=/lib/systemd/system/
  34. endif
  35. define UDEV_INSTALL_INITSCRIPT
  36. $(INSTALL) -m 0755 package/udev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
  37. endef
  38. UDEV_POST_INSTALL_TARGET_HOOKS += UDEV_INSTALL_INITSCRIPT
  39. $(eval $(call AUTOTARGETS))