Update the init scripts have to use udevadm where appropriate. The udev package no longer provides separate udev utilities like udevtrigger and udevsettle. These have been incorporated into the udev admin program udevadm. Replace the udevextras sub package with config options to the udev package. Update the preinit script to check for '/lib/udev/devices', and copy it to '/dev/ if it is found, then to conditionaly setup /dev the old way with mknod etc. Udev now recommends using the directory '/lib/udev/devices' to initialize the '/dev' directory at startup. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> SVN-Revision: 17378master
parent
0ff31d848f
commit
525d86686e
@ -1,9 +0,0 @@ |
|||||||
# Input devices, group under /dev/input |
|
||||||
SUBSYSTEM!="input", GOTO="input_grouping_end" |
|
||||||
|
|
||||||
KERNEL=="event[0-9]*", NAME="input/%k" |
|
||||||
KERNEL=="mice", NAME="input/%k" |
|
||||||
KERNEL=="mouse[0-9]*", NAME="input/%k" |
|
||||||
KERNEL=="js[0-9]*", NAME="input/%k" |
|
||||||
|
|
||||||
LABEL="input_grouping_end" |
|
@ -1,22 +0,0 @@ |
|||||||
Index: udev-106/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- udev-106.orig/Makefile 2007-06-04 13:22:17.765154568 +0200
|
|
||||||
+++ udev-106/Makefile 2007-06-04 13:22:17.831144536 +0200
|
|
||||||
@@ -113,7 +113,7 @@
|
|
||||||
AR = $(CROSS_COMPILE)ar
|
|
||||||
RANLIB = $(CROSS_COMPILE)ranlib
|
|
||||||
|
|
||||||
-CFLAGS = -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
|
|
||||||
+CFLAGS = -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
|
|
||||||
WARNINGS = -Wstrict-prototypes -Wsign-compare -Wshadow \
|
|
||||||
-Wchar-subscripts -Wmissing-declarations -Wnested-externs \
|
|
||||||
-Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes
|
|
||||||
@@ -130,7 +130,7 @@
|
|
||||||
|
|
||||||
# if DEBUG is enabled, then we do not strip
|
|
||||||
ifeq ($(strip $(DEBUG)),true)
|
|
||||||
- CFLAGS += -DDEBUG
|
|
||||||
+ CFLAGS += -g -DDEBUG
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(strip $(USE_GCOV)),true)
|
|
@ -1,12 +0,0 @@ |
|||||||
Index: udev-106/udevtrigger.c
|
|
||||||
===================================================================
|
|
||||||
--- udev-106.orig/udevtrigger.c 2007-06-04 13:22:17.745157608 +0200
|
|
||||||
+++ udev-106/udevtrigger.c 2007-06-04 13:22:18.022115504 +0200
|
|
||||||
@@ -446,7 +446,6 @@
|
|
||||||
};
|
|
||||||
|
|
||||||
logging_init("udevtrigger");
|
|
||||||
- udev_config_init();
|
|
||||||
dbg("version %s", UDEV_VERSION);
|
|
||||||
sysfs_init();
|
|
||||||
|
|
@ -1,51 +0,0 @@ |
|||||||
Index: udev-106/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- udev-106.orig/Makefile 2007-06-04 13:22:17.831144536 +0200
|
|
||||||
+++ udev-106/Makefile 2007-06-04 13:22:18.210086928 +0200
|
|
||||||
@@ -246,13 +246,15 @@
|
|
||||||
.PHONY: install-config
|
|
||||||
|
|
||||||
install-man:
|
|
||||||
- $(INSTALL_DATA) -D udev.7 $(DESTDIR)$(mandir)/man7/udev.7
|
|
||||||
- $(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
|
|
||||||
- $(INSTALL_DATA) -D udevtest.8 $(DESTDIR)$(mandir)/man8/udevtest.8
|
|
||||||
- $(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
|
|
||||||
- $(INSTALL_DATA) -D udevtrigger.8 $(DESTDIR)$(mandir)/man8/udevtrigger.8
|
|
||||||
- $(INSTALL_DATA) -D udevsettle.8 $(DESTDIR)$(mandir)/man8/udevsettle.8
|
|
||||||
- $(INSTALL_DATA) -D udevmonitor.8 $(DESTDIR)$(mandir)/man8/udevmonitor.8
|
|
||||||
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man7
|
|
||||||
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man8
|
|
||||||
+ $(INSTALL_DATA) udev.7 $(DESTDIR)$(mandir)/man7/udev.7
|
|
||||||
+ $(INSTALL_DATA) udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
|
|
||||||
+ $(INSTALL_DATA) udevtest.8 $(DESTDIR)$(mandir)/man8/udevtest.8
|
|
||||||
+ $(INSTALL_DATA) udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
|
|
||||||
+ $(INSTALL_DATA) udevtrigger.8 $(DESTDIR)$(mandir)/man8/udevtrigger.8
|
|
||||||
+ $(INSTALL_DATA) udevsettle.8 $(DESTDIR)$(mandir)/man8/udevsettle.8
|
|
||||||
+ $(INSTALL_DATA) udevmonitor.8 $(DESTDIR)$(mandir)/man8/udevmonitor.8
|
|
||||||
- ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevcontrol.8
|
|
||||||
@extras="$(EXTRAS)"; for target in $$extras; do \
|
|
||||||
$(MAKE) -C $$target $@ || exit 1; \
|
|
||||||
@@ -275,13 +277,16 @@
|
|
||||||
|
|
||||||
install-bin:
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(udevdir)
|
|
||||||
- $(INSTALL_PROGRAM) -D udevd $(DESTDIR)$(sbindir)/udevd
|
|
||||||
- $(INSTALL_PROGRAM) -D udevtrigger $(DESTDIR)$(sbindir)/udevtrigger
|
|
||||||
- $(INSTALL_PROGRAM) -D udevsettle $(DESTDIR)$(sbindir)/udevsettle
|
|
||||||
- $(INSTALL_PROGRAM) -D udevcontrol $(DESTDIR)$(sbindir)/udevcontrol
|
|
||||||
- $(INSTALL_PROGRAM) -D udevmonitor $(DESTDIR)$(usrsbindir)/udevmonitor
|
|
||||||
- $(INSTALL_PROGRAM) -D udevinfo $(DESTDIR)$(usrbindir)/udevinfo
|
|
||||||
- $(INSTALL_PROGRAM) -D udevtest $(DESTDIR)$(usrbindir)/udevtest
|
|
||||||
+ $(INSTALL) -d $(DESTDIR)$(sbindir)
|
|
||||||
+ $(INSTALL) -d $(DESTDIR)$(usrbindir)
|
|
||||||
+ $(INSTALL) -d $(DESTDIR)$(usrsbindir)
|
|
||||||
+ $(INSTALL_PROGRAM) udevd $(DESTDIR)$(sbindir)/udevd
|
|
||||||
+ $(INSTALL_PROGRAM) udevtrigger $(DESTDIR)$(sbindir)/udevtrigger
|
|
||||||
+ $(INSTALL_PROGRAM) udevsettle $(DESTDIR)$(sbindir)/udevsettle
|
|
||||||
+ $(INSTALL_PROGRAM) udevcontrol $(DESTDIR)$(sbindir)/udevcontrol
|
|
||||||
+ $(INSTALL_PROGRAM) udevmonitor $(DESTDIR)$(usrsbindir)/udevmonitor
|
|
||||||
+ $(INSTALL_PROGRAM) udevinfo $(DESTDIR)$(usrbindir)/udevinfo
|
|
||||||
+ $(INSTALL_PROGRAM) udevtest $(DESTDIR)$(usrbindir)/udevtest
|
|
||||||
@extras="$(EXTRAS)"; for target in $$extras; do \
|
|
||||||
$(MAKE) -C $$target $@ || exit 1; \
|
|
||||||
done;
|
|
@ -0,0 +1,94 @@ |
|||||||
|
# udev package config |
||||||
|
|
||||||
|
menu "udev configuration" |
||||||
|
depends on PACKAGE_udev |
||||||
|
|
||||||
|
config UDEV_DISABLE_LOGGING |
||||||
|
bool "Disable udev logging to syslog" |
||||||
|
depends on PACKAGE_udev |
||||||
|
default n |
||||||
|
help |
||||||
|
Disable logging of udev messages to the syslog. If |
||||||
|
unsure, choose the default N. |
||||||
|
|
||||||
|
config UDEV_ENABLE_DEBUG |
||||||
|
bool "Enable debug build of the udev package" |
||||||
|
depends on PACKAGE_udev |
||||||
|
default n |
||||||
|
help |
||||||
|
Compile in udev debug messages. If unsure, choose |
||||||
|
the default N. |
||||||
|
|
||||||
|
config UDEV_EXTRA_ata_id |
||||||
|
bool "Install udev ata_id callout" |
||||||
|
default y |
||||||
|
help |
||||||
|
ata_id - udev callout to read product/serial number |
||||||
|
from ATA drives |
||||||
|
|
||||||
|
config UDEV_EXTRA_cdrom_id |
||||||
|
bool "Install udev cdrom_id callout" |
||||||
|
default y |
||||||
|
help |
||||||
|
cdrom_id - udev callout to determine the capabilities |
||||||
|
of optical drives and media |
||||||
|
|
||||||
|
config UDEV_EXTRA_collect |
||||||
|
bool "Install udev collect" |
||||||
|
default n |
||||||
|
help |
||||||
|
Adds ID to the list governed by <checkpoint> |
||||||
|
|
||||||
|
config UDEV_EXTRA_edd_id |
||||||
|
bool "Install udev edd_id callout" |
||||||
|
default n |
||||||
|
help |
||||||
|
edd_id - udev callout to identify BIOS disk drives |
||||||
|
via EDD |
||||||
|
|
||||||
|
config UDEV_EXTRA_firmware |
||||||
|
bool "Install firmware support" |
||||||
|
default n |
||||||
|
help |
||||||
|
udev firmware loader |
||||||
|
via EDD |
||||||
|
|
||||||
|
config UDEV_EXTRA_floppy |
||||||
|
bool "Install create_floppy_devices callout" |
||||||
|
default n |
||||||
|
help |
||||||
|
create_floppy_devices - udev callout to create all |
||||||
|
possible floppy device based on the CMOS type |
||||||
|
|
||||||
|
config UDEV_EXTRA_fstab_import |
||||||
|
bool "Install fstab import" |
||||||
|
default y |
||||||
|
help |
||||||
|
find matching entry in fstab and export it |
||||||
|
|
||||||
|
config UDEV_EXTRA_path_id |
||||||
|
bool "Install udev path_id callout" |
||||||
|
default y |
||||||
|
help |
||||||
|
path_id - udev callout to create a device path based |
||||||
|
unique name for a device to implement the Linux |
||||||
|
Persistent Device Naming scheme |
||||||
|
|
||||||
|
config UDEV_EXTRA_rule_generator |
||||||
|
bool "Install udev rule_generator" |
||||||
|
default y |
||||||
|
help |
||||||
|
|
||||||
|
config UDEV_EXTRA_scsi_id |
||||||
|
bool "Install udev scsi_id callout" |
||||||
|
default y |
||||||
|
help |
||||||
|
scsi_id - retrieve and generate a unique SCSI identifier |
||||||
|
|
||||||
|
config UDEV_EXTRA_usb_id |
||||||
|
bool "Install udev usb_id callout" |
||||||
|
default y |
||||||
|
help |
||||||
|
usb_id - can find the unique id of USB devices |
||||||
|
|
||||||
|
endmenu |
@ -1,57 +0,0 @@ |
|||||||
|
|
||||||
config UDEVEXTRAS_ata_id |
|
||||||
bool |
|
||||||
prompt "ata_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
ata_id can find unique identifiers for ATA devices |
|
||||||
|
|
||||||
config UDEVEXTRAS_cdrom_id |
|
||||||
bool |
|
||||||
prompt "cdrom_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
cdrom_id can find unique identifiers for CDROM devices |
|
||||||
|
|
||||||
config UDEVEXTRAS_dasd_id |
|
||||||
bool |
|
||||||
prompt "dasd_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
dasd_id can find unique identifiers for DASD devices |
|
||||||
|
|
||||||
config UDEVEXTRAS_edd_id |
|
||||||
bool |
|
||||||
prompt "edd_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
edd_id can find unique identifiers for EDD devices |
|
||||||
|
|
||||||
config UDEVEXTRAS_path_id |
|
||||||
bool |
|
||||||
prompt "path_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
path_id can find the full path (eg. bus-device-partition) |
|
||||||
of devices |
|
||||||
|
|
||||||
config UDEVEXTRAS_scsi_id |
|
||||||
bool |
|
||||||
prompt "scsi_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
scsi_id can find unique identifiers for SCSI devices |
|
||||||
|
|
||||||
config UDEVEXTRAS_usb_id |
|
||||||
bool |
|
||||||
prompt "usb_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
usb_id can find the unique id of USB devices |
|
||||||
|
|
||||||
config UDEVEXTRAS_volume_id |
|
||||||
bool |
|
||||||
prompt "volume_id" if PACKAGE_udevextras |
|
||||||
default n |
|
||||||
help |
|
||||||
volume_id can find the volume label of storage devices |
|
Loading…
Reference in new issue