1 DESCRIPTION
= "udev is a daemon which dynamically creates and removes device nodes from \
2 /dev/, handles hotplug events and loads drivers at boot time. It replaces \
3 the hotplug package and requires a kernel not older than 2.6.12."
9 #DEFAULT_PREFERENCE
= "-1"
11 # Needed
for udev
-extras
12 DEPENDS
= "gperf-native usbutils acl glib-2.0"
13 RDEPENDS_$
{PN
} += "module-init-tools-depmod udev-utils"
15 SRC_URI
[md5sum
] = "7c537de77442317ef1b93f9dba38fd4e"
16 SRC_URI
[sha256sum
] = "f536de7fc0ec231cb793aae9501c648763901d4360c27a864d1bdf3ed8aca00f"
18 SRC_URI
= "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
19 file://mount.blacklist \
24 file://devfs-udev.rules \
26 file://permissions.rules \
33 file://udev-compat-wrapper-patch \
36 SRC_URI_append_h2200
= " file://50-hostap_cs.rules "
37 PACKAGE_ARCH_h2200
= "h2200"
40 SRC_URI_append_bug
= " \
42 file://10-mx31.rules \
43 file://bmi_eventpipe.sh "
45 PACKAGE_ARCH_bug
= "bug"
47 inherit update
-rc.d autotools
49 EXTRA_OECONF
+= " --with-udev-prefix= \
50 --with-libdir-name=${base_libdir} \
51 --with-pci-ids-path=/usr/share/misc \
52 --disable-introspection \
53 ac_cv_file__usr_share_pci_ids=no \
54 ac_cv_file__usr_share_hwdata_pci_ids=no \
55 ac_cv_file__usr_share_misc_pci_ids=yes \
56 --sbindir=${base_sbindir} \
57 --libexecdir=${base_libdir}/udev \
58 --with-rootlibdir=${base_libdir} \
61 INITSCRIPT_NAME
= "udev"
62 INITSCRIPT_PARAMS
= "start 03 S ."
64 PACKAGES
=+ "libudev libgudev udev-utils"
66 FILES_libudev
= "${base_libdir}/libudev.so.*"
67 FILES_libgudev
= "${libdir}/libgudev*.so.*"
69 FILES_udev
-utils
= "${bindir}/udevinfo ${bindir}/udevtest ${base_sbindir}/udevadm"
71 RPROVIDES_$
{PN
} = "hotplug"
72 FILES_$
{PN
} += "${usrbindir}/* ${usrsbindir}/udevd"
73 FILES_$
{PN
}-dbg
+= "${usrbindir}/.debug ${usrsbindir}/.debug"
75 # udev installs binaries under $
(udev_prefix
)/lib
/udev
, even
if $
{libdir
}
77 FILES_$
{PN
} += "/lib/udev* ${libdir}/ConsoleKit"
78 FILES_$
{PN
}-dbg
+= "/lib/udev/.debug"
80 RPROVIDES_udev_append
= " udev-compat-wrapper"
81 RDEPENDS_udev_append_spitz
= " udev-compat"
82 do_unpack_append_spitz
() {
83 bb.build.exec_func
('do_apply_compat_wrapper'
, d
)
85 RDEPENDS_udev_append_akita
= " udev-compat"
86 do_unpack_append_akita
() {
87 bb.build.exec_func
('do_apply_compat_wrapper'
, d
)
89 RDEPENDS_udev_append_c7x0
= " udev-compat"
90 do_unpack_append_c7x0
() {
91 bb.build.exec_func
('do_apply_compat_wrapper'
, d
)
93 RDEPENDS_udev_append_poodle
= " udev-compat"
94 do_unpack_append_poodle
() {
95 bb.build.exec_func
('do_apply_compat_wrapper'
, d
)
98 # Modify init script on platforms that need
to boot old kernels
:
99 do_apply_compat_wrapper
() {
101 sed
-i
"s:/sbin/udevd:\$UDEVD:g;s:/sbin/udevadm:\$UDEVADM:g" init
102 patch
<udev
-compat
-wrapper
-patch
107 install
-d $
{D
}$
{usrsbindir
} \
109 oe_runmake 'DESTDIR
=$
{D
}' INSTALL
=install install
110 install
-d $
{D
}$
{sysconfdir
}/init.d
111 install
-m
0755 $
{WORKDIR
}/init $
{D
}$
{sysconfdir
}/init.d
/udev
112 install
-m
0755 $
{WORKDIR
}/cache $
{D
}$
{sysconfdir
}/init.d
/udev
-cache
114 install
-d $
{D
}$
{sysconfdir
}/default
115 install
-m
0755 $
{WORKDIR
}/default $
{D
}$
{sysconfdir
}/default/udev
117 cp $
{S
}/rules
/rules.d
/* $
{D
}$
{sysconfdir
}/udev
/rules.d
/
119 install
-m
0644 $
{WORKDIR
}/mount.blacklist $
{D
}$
{sysconfdir
}/udev
/
120 install
-m
0644 $
{WORKDIR
}/local.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/local.rules
121 install
-m
0644 $
{WORKDIR
}/permissions.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/permissions.rules
122 install
-m
0644 $
{WORKDIR
}/run.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/run.rules
123 install
-m
0644 $
{WORKDIR
}/udev.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/udev.rules
124 install
-m
0644 $
{WORKDIR
}/links.conf $
{D
}$
{sysconfdir
}/udev
/links.conf
125 if [ "${UDEV_DEVFS_RULES}" = "1" ]; then
126 install
-m
0644 $
{WORKDIR
}/devfs
-udev.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/devfs
-udev.rules
129 touch $
{D
}$
{sysconfdir
}/udev
/saved.uname
130 touch $
{D
}$
{sysconfdir
}/udev
/saved.cmdline
131 touch $
{D
}$
{sysconfdir
}/udev
/saved.atags
133 install
-d $
{D
}$
{sysconfdir
}/udev
/scripts
/
135 install
-m
0755 $
{WORKDIR
}/mount.sh $
{D
}$
{sysconfdir
}/udev
/scripts
/mount.sh
136 install
-m
0755 $
{WORKDIR
}/network.sh $
{D
}$
{sysconfdir
}/udev
/scripts
139 do_install_append_h2200
() {
140 install
-m
0644 $
{WORKDIR
}/50-hostap_cs.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/50-hostap_cs.rules
143 do_install_append_bug
() {
144 install
-m
0644 $
{WORKDIR
}/30-BUG.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/30-BUG.rules
145 install
-m
0644 $
{WORKDIR
}/10-mx31.rules $
{D
}$
{sysconfdir
}/udev
/rules.d
/10-mx31.rules
146 install
-m
0644 $
{WORKDIR
}/bmi_eventpipe.sh $
{D
}$
{sysconfdir
}/udev
/scripts
/bmi_eventpipe.sh
149 # Create the cache
after checkroot has run
150 pkg_postinst_udev_append
() {
151 if test
"x$D" != "x"; then
156 update
-rc.d $OPT udev
-cache start
12 S .