source: trunk/package/udev/Makefile @ 17507

Last change on this file since 17507 was 17507, checked in by florian, 7 years ago

[package] udev depends on 2.6, cleanup Makefile

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 3.4 KB
Line 
1#
2# Copyright (C) 2006-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=udev
11PKG_VERSION:=142
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/hotplug/
16PKG_MD5SUM:=3edc4cf383dccb06d866c5156d59ddd5
17
18include $(INCLUDE_DIR)/package.mk
19
20PKG_INSTALL=1
21
22define Package/udev
23  SECTION:=base
24  CATEGORY:=Base system
25  DEPENDS:=@LINUX_2_6
26  TITLE:=Dynamic device management subsystem
27  URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
28  MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com>
29endef
30
31define 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.
34endef
35
36define Package/udev/config
37        source "$(SOURCE)/udev-config.in"
38endef
39
40udev-args-$(CONFIG_UDEV_DISABLE_LOGGING) += --disable-logging
41udev-args-$(CONFIG_UDEV_ENABLE_DEBUG) += --enable-debug
42
43CONFIGURE_ARGS += --prefix=/usr --exec-prefix= --sysconfdir=/etc \
44        --sbindir=/sbin $(udev-args-y)
45
46udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_ata_id) += ata_id
47
48udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_cdrom_id) += cdrom_id
49udev-extra-rules-$(CONFIG_UDEV_EXTRA_cdrom_id) += 60-cdrom_id.rules
50
51udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_collect) += collect
52
53udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_edd_id) += edd_id
54udev-extra-rules-$(CONFIG_UDEV_EXTRA_edd_id) += 61-persistent-storage-edd.rules
55
56udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_firmware) += firmware.sh
57udev-extra-rules-$(CONFIG_UDEV_EXTRA_firmware) += 50-firmware.rules
58
59udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_floppy) += create_floppy_devices
60
61udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_fstab_import) += fstab_import
62udev-extra-rules-$(CONFIG_UDEV_EXTRA_fstab_import) += 79-fstab_import.rules
63
64udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_path_id) += path_id
65
66udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_rule_generator) += \
67        write_cd_rules write_net_rules
68udev-extra-lib-data-$(CONFIG_UDEV_EXTRA_rule_generator) += \
69        rule_generator.functions
70udev-extra-rules-$(CONFIG_UDEV_EXTRA_rule_generator) += \
71        75-cd-aliases-generator.rules 75-persistent-net-generator.rules
72
73udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_scsi_id) += scsi_id
74
75udev-extra-lib-bin-$(CONFIG_UDEV_EXTRA_usb_id) += usb_id
76
77define Package/udev/install
78        $(INSTALL_DIR) $(1)/etc/udev/rules.d
79        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/udev/udev.conf $(1)/etc/udev
80
81        $(INSTALL_DIR) $(1)/sbin
82        $(INSTALL_BIN) \
83                $(PKG_INSTALL_DIR)/sbin/udevadm \
84                $(PKG_INSTALL_DIR)/sbin/udevd \
85                $(1)/sbin
86
87        $(INSTALL_DIR) $(1)/lib/udev/rules.d
88        $(INSTALL_DATA) \
89                $(addprefix $(PKG_INSTALL_DIR)/lib/udev/rules.d/, \
90                        $(udev-extra-rules-y)) \
91                $(addprefix $(PKG_INSTALL_DIR)/lib/udev/rules.d/, \
92                        50-udev-default.rules \
93                        60-persistent-input.rules \
94                        60-persistent-serial.rules \
95                        60-persistent-storage.rules \
96                        80-drivers.rules \
97                        95-udev-late.rules) \
98                $(1)/lib/udev/rules.d
99
100        $(INSTALL_DIR) $(1)/lib
101        $(INSTALL_BIN) \
102                $(PKG_INSTALL_DIR)/lib/libudev.so.* \
103                $(1)/lib
104
105        $(INSTALL_DIR) $(1)/lib/udev
106ifneq ($(udev-extra-lib-bin-y),)
107                $(INSTALL_BIN) \
108                        $(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
109                                $(udev-extra-lib-bin-y)) \
110                        $(1)/lib/udev/
111endif
112ifneq ($(udev-extra-lib-data-y),)
113                $(INSTALL_DATA) \
114                        $(addprefix $(PKG_INSTALL_DIR)/lib/udev/, \
115                                $(udev-extra-lib-data-y)) \
116                        $(1)/lib/udev/
117endif
118endef
119
120$(eval $(call BuildPackage,udev))
Note: See TracBrowser for help on using the repository browser.