2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/kernel
/hotplug
/
16 PKG_MD5SUM
:=3edc4cf383dccb06d866c5156d59ddd5
18 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=Dynamic device management subsystem
26 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/udev.html
27 MAINTAINER
:=Geoff Levand
<geoffrey.levand@am.sony.com
>
31 define Package
/udev
/description
32 udev allows Linux users to have a dynamic
/dev directory and it
33 provides the ability to have persistent device names.
36 define Package
/udev
/conffiles
40 define Package
/udev
/config
41 source
"$(SOURCE)/Config.in"
44 udev-args-
$(CONFIG_UDEV_DISABLE_LOGGING
) += --disable-logging
45 udev-args-
$(CONFIG_UDEV_ENABLE_DEBUG
) += --enable-debug
47 CONFIGURE_ARGS
+= --prefix=/usr
--exec-prefix
= --sysconfdir
=/etc \
48 --sbindir
=/sbin
$(udev-args-y
)
50 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_ata_id
) += ata_id
52 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_cdrom_id
) += cdrom_id
53 udev-extra-rules-
$(CONFIG_UDEV_EXTRA_cdrom_id
) += 60-cdrom_id.rules
55 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_collect
) += collect
57 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_edd_id
) += edd_id
58 udev-extra-rules-
$(CONFIG_UDEV_EXTRA_edd_id
) += 61-persistent-storage-edd.rules
60 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_firmware
) += firmware.sh
61 udev-extra-rules-
$(CONFIG_UDEV_EXTRA_firmware
) += 50-firmware.rules
63 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_floppy
) += create_floppy_devices
65 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_fstab_import
) += fstab_import
66 udev-extra-rules-
$(CONFIG_UDEV_EXTRA_fstab_import
) += 79-fstab_import.rules
68 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_path_id
) += path_id
70 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_rule_generator
) += \
71 write_cd_rules write_net_rules
72 udev-extra-lib-data-
$(CONFIG_UDEV_EXTRA_rule_generator
) += \
73 rule_generator.functions
74 udev-extra-rules-
$(CONFIG_UDEV_EXTRA_rule_generator
) += \
75 75-cd-aliases-generator.rules
75-persistent-net-generator.rules
77 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_scsi_id
) += scsi_id
79 udev-extra-lib-bin-
$(CONFIG_UDEV_EXTRA_usb_id
) += usb_id
81 define Package
/udev
/install
82 $(INSTALL_DIR
) $(1)/etc
/udev
/rules.d
83 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/udev
/udev.conf
$(1)/etc
/udev
85 $(INSTALL_DIR
) $(1)/sbin
87 $(PKG_INSTALL_DIR
)/sbin
/udevadm \
88 $(PKG_INSTALL_DIR
)/sbin
/udevd \
91 $(INSTALL_DIR
) $(1)/lib
/udev
/rules.d
93 $(addprefix $(PKG_INSTALL_DIR
)/lib
/udev
/rules.d
/, \
94 $(udev-extra-rules-y
)) \
95 $(addprefix $(PKG_INSTALL_DIR
)/lib
/udev
/rules.d
/, \
96 50-udev-default.rules \
97 60-persistent-input.rules \
98 60-persistent-serial.rules \
99 60-persistent-storage.rules \
101 95-udev-late.rules
) \
102 $(1)/lib
/udev
/rules.d
104 $(INSTALL_DIR
) $(1)/lib
106 $(PKG_INSTALL_DIR
)/lib
/libudev.so.
* \
109 $(INSTALL_DIR
) $(1)/lib
/udev
110 ifneq ($(udev-extra-lib-bin-y
),)
112 $(addprefix $(PKG_INSTALL_DIR
)/lib
/udev
/, \
113 $(udev-extra-lib-bin-y
)) \
116 ifneq ($(udev-extra-lib-data-y
),)
118 $(addprefix $(PKG_INSTALL_DIR
)/lib
/udev
/, \
119 $(udev-extra-lib-data-y
)) \
124 $(eval
$(call BuildPackage
,udev
))