diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-01-29 15:18:56 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-01-29 15:18:56 +0000 |
commit | ecc9880c9d05dbe73b7f50946401d96e187c979a (patch) | |
tree | f2091a88010553dc686a0f3117d810f5c048b689 /meta/packages/udev | |
parent | e5c96dd507fbf96979b619429faaef5fe8420911 (diff) | |
download | poky-ecc9880c9d05dbe73b7f50946401d96e187c979a.tar.gz |
udev: Enable gudev
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/udev')
-rw-r--r-- | meta/packages/udev/udev-145/enable-gudev.patch | 48 | ||||
-rw-r--r-- | meta/packages/udev/udev_145.bb | 5 |
2 files changed, 51 insertions, 2 deletions
diff --git a/meta/packages/udev/udev-145/enable-gudev.patch b/meta/packages/udev/udev-145/enable-gudev.patch new file mode 100644 index 0000000000..45fd37311c --- /dev/null +++ b/meta/packages/udev/udev-145/enable-gudev.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | Index: udev-145/configure.ac | ||
2 | =================================================================== | ||
3 | --- udev-145.orig/configure.ac 2010-01-29 14:41:29.000000000 +0000 | ||
4 | +++ udev-145/configure.ac 2010-01-29 14:41:54.000000000 +0000 | ||
5 | @@ -49,16 +49,17 @@ | ||
6 | AC_ARG_ENABLE([extras], | ||
7 | AS_HELP_STRING([--disable-extras], [disable extras with external dependencies]), | ||
8 | [], [enable_extras=yes]) | ||
9 | + | ||
10 | + PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0]) | ||
11 | + AC_SUBST([GLIB_CFLAGS]) | ||
12 | + AC_SUBST([GLIB_LIBS]) | ||
13 | + | ||
14 | if test "x$enable_extras" = xyes; then | ||
15 | AC_PATH_PROG([GPERF], [gperf]) | ||
16 | if test -z "$GPERF"; then | ||
17 | AC_MSG_ERROR([gperf is needed]) | ||
18 | fi | ||
19 | |||
20 | - PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0]) | ||
21 | - AC_SUBST([GLIB_CFLAGS]) | ||
22 | - AC_SUBST([GLIB_LIBS]) | ||
23 | - | ||
24 | AC_CHECK_LIB([acl], [acl_init], [:], AC_MSG_ERROR([libacl not found])) | ||
25 | AC_CHECK_HEADER([acl/libacl.h], [:], AC_MSG_ERROR([libacl header not found])) | ||
26 | |||
27 | Index: udev-145/extras/Makefile.am | ||
28 | =================================================================== | ||
29 | --- udev-145.orig/extras/Makefile.am 2010-01-29 14:43:56.000000000 +0000 | ||
30 | +++ udev-145/extras/Makefile.am 2010-01-29 14:44:11.000000000 +0000 | ||
31 | @@ -12,7 +12,8 @@ | ||
32 | rule_generator \ | ||
33 | scsi_id \ | ||
34 | usb_id \ | ||
35 | - v4l_id | ||
36 | + v4l_id \ | ||
37 | + gudev | ||
38 | |||
39 | if ENABLE_EXTRAS | ||
40 | SUBDIRS += \ | ||
41 | @@ -20,6 +21,5 @@ | ||
42 | usb-db \ | ||
43 | hid2hci \ | ||
44 | keymap \ | ||
45 | - modem-modeswitch \ | ||
46 | - gudev | ||
47 | + modem-modeswitch | ||
48 | endif | ||
diff --git a/meta/packages/udev/udev_145.bb b/meta/packages/udev/udev_145.bb index ab5d3fe458..e1a2938e17 100644 --- a/meta/packages/udev/udev_145.bb +++ b/meta/packages/udev/udev_145.bb | |||
@@ -3,9 +3,10 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod | |||
3 | the hotplug package and requires a kernel not older than 2.6.12." | 3 | the hotplug package and requires a kernel not older than 2.6.12." |
4 | RPROVIDES_${PN} = "hotplug" | 4 | RPROVIDES_${PN} = "hotplug" |
5 | 5 | ||
6 | PR = "r6" | 6 | PR = "r7" |
7 | 7 | ||
8 | SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ | 8 | SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ |
9 | file://enable-gudev.patch;patch=1 \ | ||
9 | file://run.rules \ | 10 | file://run.rules \ |
10 | " | 11 | " |
11 | 12 | ||
@@ -20,7 +21,7 @@ FILES_${PN} += "${base_libdir}/udev/*" | |||
20 | FILES_${PN}-dbg += "${base_libdir}/udev/.debug" | 21 | FILES_${PN}-dbg += "${base_libdir}/udev/.debug" |
21 | UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/" | 22 | UDEV_EXTRAS = "extras/firmware/ extras/scsi_id/ extras/volume_id/" |
22 | 23 | ||
23 | EXTRA_OECONF = "--with-udev-prefix= --disable-extras" | 24 | EXTRA_OECONF = "--with-udev-prefix= --disable-extras --disable-introspection" |
24 | 25 | ||
25 | do_install () { | 26 | do_install () { |
26 | install -d ${D}${usrsbindir} \ | 27 | install -d ${D}${usrsbindir} \ |