2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-03-15 20:16:00 +01:00
|
|
|
#
|
|
|
|
# udev
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-08 04:57:45 +02:00
|
|
|
|
2012-03-22 16:01:00 +01:00
|
|
|
UDEV_VERSION = 182
|
2013-09-06 08:14:15 +02:00
|
|
|
UDEV_SOURCE = udev-$(UDEV_VERSION).tar.xz
|
2011-07-22 16:51:28 +02:00
|
|
|
UDEV_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/hotplug/
|
2013-05-08 04:57:45 +02:00
|
|
|
UDEV_LICENSE = GPLv2+
|
|
|
|
UDEV_LICENSE_FILES = COPYING
|
2011-10-25 11:52:11 +02:00
|
|
|
UDEV_INSTALL_STAGING = YES
|
2011-07-22 16:51:28 +02:00
|
|
|
|
2012-02-08 10:50:25 +01:00
|
|
|
# mq_getattr is in librt
|
|
|
|
UDEV_CONF_ENV += LIBS=-lrt
|
|
|
|
|
2011-07-22 16:51:28 +02:00
|
|
|
UDEV_CONF_OPT = \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
--with-rootlibdir=/lib \
|
2012-02-08 10:50:25 +01:00
|
|
|
--libexecdir=/lib \
|
|
|
|
--with-usb-ids-path=/usr/share/hwdata/usb.ids \
|
|
|
|
--with-pci-ids-path=/usr/share/hwdata/pci.ids \
|
|
|
|
--with-firmware-path=/lib/firmware \
|
2011-07-22 16:51:28 +02:00
|
|
|
--disable-introspection
|
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
UDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux kmod
|
2012-02-08 10:50:25 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_UDEV_RULES_GEN),y)
|
|
|
|
UDEV_CONF_OPT += --enable-rule_generator
|
|
|
|
endif
|
2011-07-22 16:51:28 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_UDEV_ALL_EXTRAS),y)
|
2012-02-08 10:50:25 +01:00
|
|
|
UDEV_DEPENDENCIES += acl hwdata libglib2
|
|
|
|
UDEV_CONF_OPT += \
|
2011-08-02 10:00:16 +02:00
|
|
|
--enable-udev_acl
|
2011-07-22 16:51:28 +02:00
|
|
|
else
|
|
|
|
UDEV_CONF_OPT += \
|
|
|
|
--disable-gudev
|
2007-05-07 06:02:31 +02:00
|
|
|
endif
|
|
|
|
|
2012-03-23 16:49:52 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
UDEV_CONF_OPT += --with-systemdsystemunitdir=/lib/systemd/system/
|
|
|
|
endif
|
|
|
|
|
2011-07-22 16:51:28 +02:00
|
|
|
define UDEV_INSTALL_INITSCRIPT
|
|
|
|
$(INSTALL) -m 0755 package/udev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
|
2009-11-11 23:32:28 +01:00
|
|
|
endef
|
2009-02-13 20:57:59 +01:00
|
|
|
|
2011-07-22 16:51:28 +02:00
|
|
|
UDEV_POST_INSTALL_TARGET_HOOKS += UDEV_INSTALL_INITSCRIPT
|
2009-02-13 20:57:59 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|