2009-08-24 23:19:26 +03:00
|
|
|
#
|
2008-04-13 17:20:34 +03:00
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2006-06-27 03:35:46 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-12-07 19:03:23 +02:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=udev
|
2011-08-25 13:49:29 +03:00
|
|
|
PKG_VERSION:=173
|
2005-12-07 19:03:23 +02:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-08-26 21:21:24 +03:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/hotplug/
|
2011-08-25 13:49:29 +03:00
|
|
|
PKG_MD5SUM:=91a88a359b60bbd074b024883cc0dbde
|
2005-12-07 19:03:23 +02:00
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-12-07 19:03:23 +02:00
|
|
|
|
2009-08-24 23:19:26 +03:00
|
|
|
PKG_INSTALL=1
|
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Package/udev
|
2009-09-03 21:11:32 +03:00
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=Dynamic device management subsystem
|
|
|
|
URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
|
|
|
|
MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com>
|
2010-04-16 13:03:09 +03:00
|
|
|
MENU:=1
|
2011-08-25 13:49:29 +03:00
|
|
|
DEPENDS:=+librt
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Package/udev/description
|
2009-08-24 23:19:26 +03:00
|
|
|
udev allows Linux users to have a dynamic /dev directory and it
|
|
|
|
provides the ability to have persistent device names.
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
2010-10-05 20:30:43 +03:00
|
|
|
define Package/udev/conffiles
|
|
|
|
/etc/udev/udev.conf
|
|
|
|
endef
|
|
|
|
|
2009-08-24 23:19:26 +03:00
|
|
|
define Package/udev/config
|
2010-04-16 13:03:09 +03:00
|
|
|
source "$(SOURCE)/Config.in"
|
2008-04-01 17:25:29 +03:00
|
|
|
endef
|
|
|
|
|
2009-08-24 23:19:26 +03:00
|
|
|
udev-args-$(CONFIG_UDEV_DISABLE_LOGGING) += --disable-logging
|
|
|
|
udev-args-$(CONFIG_UDEV_ENABLE_DEBUG) += --enable-debug
|
2011-08-25 13:49:29 +03:00
|
|
|
udev-args-$(CONFIG_UDEV_EXTRA_edd_id) += --enable-edd
|
|
|
|
udev-args-$(CONFIG_UDEV_EXTRA_floppy) += --enable-floppy
|
|
|
|
|
|
|
|
# TODO: make hwdb and introspection work
|
2008-04-13 02:32:44 +03:00
|
|
|
|
2009-08-24 23:19:26 +03:00
|
|
|
CONFIGURE_ARGS += --prefix=/usr --exec-prefix= --sysconfdir=/etc \
|
2011-08-25 13:49:29 +03:00
|
|
|
--disable-hwdb --disable-keymap --disable-gudev --disable-introspection \
|
|
|
|
--libexecdir=/lib/udev --disable-gtk-doc-html \
|
2009-08-24 23:19:26 +03:00
|
|
|
--sbindir=/sbin $(udev-args-y)
|
|
|
|
|
2011-08-25 13:49:29 +03:00
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_accelerometer) += accelerometer
|
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_accelerometer) += 61-accelerometer.rules
|
|
|
|
|
2009-08-24 23:19:26 +03:00
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_ata_id) += ata_id
|
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_cdrom_id) += cdrom_id
|
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_cdrom_id) += 60-cdrom_id.rules
|
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_collect) += collect
|
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_edd_id) += edd_id
|
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_edd_id) += 61-persistent-storage-edd.rules
|
|
|
|
|
2011-08-25 13:49:29 +03:00
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_firmware) += firmware
|
2009-08-24 23:19:26 +03:00
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_firmware) += 50-firmware.rules
|
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_floppy) += create_floppy_devices
|
|
|
|
|
2011-08-25 13:49:29 +03:00
|
|
|
# TODO: make gudev work
|
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_input_id) += input_id
|
|
|
|
|
|
|
|
# TODO: make keymap work
|
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_mtd_probe) += mtd_probe
|
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_mtd_probe) += 75-probe_mtd.rules
|
2009-08-24 23:19:26 +03:00
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_path_id) += path_id
|
|
|
|
|
2011-08-25 13:49:29 +03:00
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_qemu) += 42-qemu-usb.rules
|
|
|
|
|
2009-08-24 23:19:26 +03:00
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_rule_generator) += \
|
|
|
|
write_cd_rules write_net_rules
|
|
|
|
udev-extra-lib-data-$(CONFIG_UDEV_EXTRA_rule_generator) += \
|
|
|
|
rule_generator.functions
|
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_rule_generator) += \
|
|
|
|
75-cd-aliases-generator.rules 75-persistent-net-generator.rules
|
|
|
|
|
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_scsi_id) += scsi_id
|
|
|
|
|
2011-08-25 13:49:29 +03:00
|
|
|
# TODO: make udev-acl work
|
|
|
|
|
2009-08-24 23:19:26 +03:00
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_usb_id) += usb_id
|
2006-05-29 04:39:50 +03:00
|
|
|
|
2011-08-25 13:49:29 +03:00
|
|
|
udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_v4l_id) += v4l_id
|
|
|
|
udev-extra-rules-$(CONFIG_UDEV_EXTRA_v4l_id) += 60-persistent-v4l.rules
|
|
|
|
|
2011-01-30 00:06:26 +02:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libudev.h $(1)/usr/include
|
2011-08-25 13:49:29 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/pkgconfig/udev.pc $(1)/usr/share/pkgconfig
|
2011-01-30 00:06:26 +02:00
|
|
|
$(INSTALL_DIR) $(1)/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/libudev.so* $(1)/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2011-08-25 13:49:29 +03:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/pkgconfig/libudev.pc $(1)/usr/lib/pkgconfig
|
2011-01-30 00:06:26 +02:00
|
|
|
endef
|
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Package/udev/install
|
2009-08-24 23:19:26 +03:00
|
|
|
$(INSTALL_DIR) $(1)/etc/udev/rules.d
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/udev/udev.conf $(1)/etc/udev
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/sbin/udevadm \
|
|
|
|
$(PKG_INSTALL_DIR)/sbin/udevd \
|
|
|
|
$(1)/sbin
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/lib/udev/rules.d
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(addprefix $(PKG_INSTALL_DIR)/lib/udev/rules.d/, \
|
|
|
|
$(udev-extra-rules-y)) \
|
|
|
|
$(addprefix $(PKG_INSTALL_DIR)/lib/udev/rules.d/, \
|
|
|
|
50-udev-default.rules \
|
|
|
|
60-persistent-input.rules \
|
|
|
|
60-persistent-serial.rules \
|
|
|
|
60-persistent-storage.rules \
|
|
|
|
80-drivers.rules \
|
|
|
|
95-udev-late.rules) \
|
|
|
|
$(1)/lib/udev/rules.d
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/lib
|
2011-08-25 13:49:29 +03:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/libudev.so* $(1)/lib
|
2005-12-07 19:03:23 +02:00
|
|
|
|
2008-04-13 17:20:34 +03:00
|
|
|
$(INSTALL_DIR) $(1)/lib/udev
|
2009-08-24 23:19:26 +03:00
|
|
|
ifneq ($(udev-extra-lib-bin-y),)
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
|
|
|
|
$(udev-extra-lib-bin-y)) \
|
|
|
|
$(1)/lib/udev/
|
|
|
|
endif
|
|
|
|
ifneq ($(udev-extra-lib-data-y),)
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
|
|
|
|
$(udev-extra-lib-data-y)) \
|
|
|
|
$(1)/lib/udev/
|
|
|
|
endif
|
2008-04-01 17:25:29 +03:00
|
|
|
endef
|
2007-03-04 21:49:49 +02:00
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
$(eval $(call BuildPackage,udev))
|