summaryrefslogtreecommitdiffstats
path: root/rules/udev.in
blob: f967367ea467122c5636e84145652a335b5e0a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
## SECTION=shell_and_console
menuconfig UDEV
	tristate
	prompt "udev                          "
	select ROOTFS_DEV
	select HOST_GPERF	if UDEV_EXTRA_KEYMAP
	select GLIB		if UDEV_LIBGUDEV
	select GLIB		if UDEV_EXTRA_UDEV_ACL
	select ACL		if UDEV_EXTRA_UDEV_ACL
	select USBUTILS		if UDEV_EXTRA_USB_DB
	select LIBUSB_COMPAT	if UDEV_EXTRA_HID2HCI
	select LIBUSB_COMPAT	if UDEV_EXTRA_MOBILE_ACTION_MODESWITCH
	select PCIUTILS		if UDEV_EXTRA_PCI_DB
	help
	  udev provides a dynamic device directory containing only the files for
	  actually present devices. It creates or removes device node files in the
	  /dev directory, or it renames network interfaces.

	  Usually udev runs as udevd(8) and receives uevents directly from the
	  kernel if a device is added or removed from the system.

	  If udev receives a device event, it matches its configured rules against
	  the available device attributes provided in sysfs to identify the
	  device. Rules that match, may provide additional device information or
	  specify a device node name and multiple symlink names and instruct udev
	  to run additional programs as part of the device event handling.

	  Ensure: This udev implementation requires at least kernel 2.6.15 and
	  must have sysfs, unix domain sockets and networking enabled.

if UDEV

menu "build options                 "

	config UDEV_DEBUG
		bool
		prompt "enable debug messages"
		help
		  If enabled, very verbose debugging messages will be compiled
		  into the udev binaries. The actual level of debugging is specified
		  in the udev config file (refer entry "udev_log")

	config UDEV_SELINUX
		bool
		# not supported yet
		# prompt "enable selinux support"

	config UDEV_SYSLOG
		bool
		prompt "syslog support"
		help
		  If enabled, udev is able to pass errors or debug information
		  to syslog. This is very useful to see what udev is doing or not doing.
		  Note: To use this feature the syslog daemon must start before udev

endmenu

menu "install options               "

	config UDEV_ETC_CONF
		bool
		default y
		prompt "install udev.conf"
		help
		  Installs /etc/udev/udev.conf. If you don't wish to install the
		  generic udev.conf, just put a copy of your own udev.conf file into
		  your own projectroot/etc/udev/

	config UDEV_DEFAULT_RULES
		bool
		prompt "install default udev rules"
		help
		  This will install the generic udev rules files from the udev package
		  under /lib/udev/rules.d/, except of rules to automatically load
		  drivers modules.

	config UDEV_DEFAULT_DRIVERS_RULES
		bool
		prompt "install default udev driver rules"
		help
		  This will install the generic udev drivers rules files from the udev package
		  under /lib/udev/rules.d/,
		  These rules are required to automatically load kernel modules on
		  udev start.
		  If unsure say Y.

	config UDEV_DEFAULT_KEYMAPS
		bool
		prompt "install default keymaps"
		help
	  	  This will install some of the common keymaps shipped by udev.

	config UDEV_CUST_RULES
		bool
		prompt "install customized udev rules"
		help
		  This will install the customized udev rules files from
		  projectroot/lib/udev/rules.d into /lib/udev/rules.d

	config UDEV_LIBUDEV
		bool
		prompt "install libudev"
		help
		  Install libudev.so on the target.

	config UDEV_LIBGUDEV
		bool
		prompt "install libgudev"
		help
		  Install libgudev.so on the target.

	config UDEV_STARTSCRIPT
		bool
		default y
		prompt "install /etc/init.d/udev or /etc/init/udev.conf"
		help
		  Install the startup magic for either bbinit or upstart.
		  Select Y here, as this is what you usually want.

endmenu

menuconfig UDEV_EXTRAS
	bool "extras                        "

if UDEV_EXTRAS

	config UDEV_EXTRA_ATA_ID
		bool
		prompt "ata_id"
		help
		  udev callout to read product/serial number from ATA drives

	config UDEV_EXTRA_CDROM_ID
		bool
		prompt "cdrom_id"
		help
		  udev callout to determine the capabilities of optical drives and media

	config UDEV_EXTRA_COLLECT
		bool
		prompt "collect"
		help
		  Collect variables across events

	config UDEV_EXTRA_EDD_ID
		bool
		prompt "edd_id"
		help
		  Tool to get EDD ID

	config UDEV_EXTRA_FINDKEYBOARDS
		bool
		prompt "findkeyboards"
		help
		  Tool to find attached keyboards

	config UDEV_EXTRA_FIRMWARE
		bool
		prompt "firmware"
		help
	  	  This is a small helper binary to load some kind of firmware on demand

	config UDEV_EXTRA_FLOPPY
		bool
		prompt "create_floppy_devices"
		help
		  FIXME

	config UDEV_EXTRA_FSTAB_IMPORT
		bool
		prompt "fstab_import"
		help
		  Find matching entry in fstab and export it

	config UDEV_EXTRA_HID2HCI
		bool
		prompt "hid2hci"
		help
		  Convert HID to HCI IDs

	config UDEV_EXTRA_INPUT_ID
		bool
		prompt "input_id"
		help
		  FIXME

	config UDEV_EXTRA_KEYBOARD_FORCE_RELEASE
		bool
		prompt "keyboard-force-release.sh"
		help
		  Keyboard support

	config UDEV_EXTRA_KEYMAP
		bool
		prompt "keymap"
		help
		  Keymap support

	config UDEV_EXTRA_MOBILE_ACTION_MODESWITCH
		bool
		prompt "mobile-action-modeswitch"
		help
		  Option UMTS Modem support

	config UDEV_EXTRA_PATH_ID
		bool
		prompt "path_id"
		help
		  udev callout to create a device path based unique name for a device to
		  implement the Linux Persistent Device Naming scheme

	config UDEV_EXTRA_PCI_DB
		bool
		prompt "pci-db"
		help
		  Name resolution for PCI IDs

	config UDEV_EXTRA_RULE_GENERATOR
		bool
		prompt "rule_generator"
		help
		  FIXME

	config UDEV_EXTRA_SCSI_ID
		bool
		prompt "scsi_id"
		help
		  Used to build unique IDs for an SCSI media to identify it again

	config UDEV_EXTRA_UDEV_ACL
		bool
		prompt "udev-acl"
		help
		  FIXME

	config UDEV_EXTRA_USB_DB
		bool
		prompt "usb-db"
		help
		  Name resolution for USB IDs

	config UDEV_EXTRA_USB_ID
		bool
		prompt "usb_id"
		help
		    This is a helper to generate unique information about some kind of
		    USB device. This is required to ensure the same hotplugged device to
		    appear always at the same device node (via link)

	config UDEV_EXTRA_V4L_ID
		bool
		prompt "v4l_id"
		help
		  FIXME

	config UDEV_EXTRA_WRITE_CD_RULES
		bool
		prompt "write_cd_rules"
		help
		  This will generate udev-based persistent naming rules for your CD/DVD media

	config UDEV_EXTRA_WRITE_NET_RULES
		bool
		prompt "write_net_rules"
		help
		  This will generate udev-based persistent naming rules for your network devices

endif

endif