[tools] firmware-utils: add a file {en,de}cryption tool, based on the PC1 encryption...
[openwrt.git] / package / udev / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=udev
11 PKG_VERSION:=106
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/hotplug/
16 PKG_MD5SUM:=320ccd2d0f4540d10e021bafa14f8985
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/udev
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=@LINUX_2_6
24 TITLE:=Dynamic device management subsystem
25 URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
26 endef
27
28 define Package/udev/description
29 udev provides a dynamic device directory containing only the files for
30 actually present devices. It creates or removes device node files in
31 the /dev directory, or it renames network interfaces.
32 endef
33
34 define Package/udevtrigger
35 $(call Package/udev)
36 SECTION:=base
37 CATEGORY:=Base system
38 TITLE:=Small utility to request kernel devices events for coldplug
39 endef
40
41 define Package/udevextras
42 $(call Package/udev)
43 TITLE:=Utilities for udev scripts, for general device discovery
44 MENU:=1
45 endef
46
47 define Package/udevextras/config
48 source "$(SOURCE)/udevextras-config.in"
49 endef
50
51 UDEV_ALL_EXTRAS=ata_id cdrom_id dasd_id edd_id scsi_id path_id usb_id volume_id
52 UDEV_EXTRAS=$(strip $(foreach e, $(UDEV_ALL_EXTRAS), \
53 $(if $(CONFIG_UDEVEXTRAS_$(e)),extras/$(e))))
54
55 define Build/Compile
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 CROSS_COMPILE="$(TARGET_CROSS)" \
58 STRIP="/bin/true" \
59 OPTFLAGS="$(TARGET_CFLAGS)" \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 INSTALL="install -c" \
62 EXTRAS="$(UDEV_EXTRAS)" \
63 VOLUME_ID_STATIC=true \
64 all install
65 endef
66
67 define Package/udev/install
68 install -d -m0775 $(1)/etc/udev
69 $(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(1)/etc/udev/
70 install -d -m0775 $(1)/lib/udev
71 install -d -m0775 $(1)/sbin/
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(1)/sbin/
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevd $(1)/sbin/
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevsettle $(1)/sbin/
75 install -d -m0775 $(1)/usr/bin/
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(1)/usr/bin/
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
78 install -d -m0775 $(1)/usr/sbin/
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
80 install -d -m0775 $(1)/etc/udev/rules.d
81 $(CP) files/20-input-grouping.rules $(1)/etc/udev/rules.d/
82 endef
83
84 define Package/udevtrigger/install
85 $(INSTALL_DIR) $(1)/sbin
86 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevtrigger $(1)/sbin/
87 endef
88
89 define Package/udevextras/install
90 $(INSTALL_DIR) $(1)/etc/udev
91 $(CP) $(PKG_BUILD_DIR)/etc/udev/rules.d $(1)/etc/udev/
92 $(INSTALL_DIR) $(1)/lib/udev
93 $$(foreach f, $$(shell $(FIND) $(PKG_INSTALL_DIR)/lib/udev/ -type f), \
94 $(CP) $$(f) $(1)/lib/udev/ ; \
95 )
96 endef
97
98 $(eval $(call BuildPackage,udev))
99 $(eval $(call BuildPackage,udevtrigger))
100 $(eval $(call BuildPackage,udevextras))
This page took 0.041607 seconds and 5 git commands to generate.