diff options
author | Qing He <qing.he@intel.com> | 2010-07-29 20:24:16 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-06 18:28:27 +0100 |
commit | 662f136795b9b4857f087235d281b0d55cd814b6 (patch) | |
tree | 5cf50cc8054112bbe192864b95b9e1079eb24b36 /meta/packages/udev | |
parent | 0bb1016de129f3d3cb02b4ae67554ecdcd368df4 (diff) | |
download | poky-662f136795b9b4857f087235d281b0d55cd814b6.tar.gz |
udev: enable udev-extras
changes:
- enable extras, this includes pci/usb and acl related utilities
- pci.ids automatic search doesn't work, specifying manually
- package udev glib binding into libgudev{,-dev,-dbg}
- libudev RDEPENDS on udev, this is somehow counter-intuitive:
libudev is the library to access udev information
- should RRECOMMENDS usbutils-ids and pciutils-ids
bug: RDEPENDS (RRECOMMENDS) on a specific version still doesn't work
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/packages/udev')
-rw-r--r-- | meta/packages/udev/udev-new.inc | 19 | ||||
-rw-r--r-- | meta/packages/udev/udev_158.bb | 2 |
2 files changed, 13 insertions, 8 deletions
diff --git a/meta/packages/udev/udev-new.inc b/meta/packages/udev/udev-new.inc index de02b23ee4..b09c748f41 100644 --- a/meta/packages/udev/udev-new.inc +++ b/meta/packages/udev/udev-new.inc | |||
@@ -5,15 +5,15 @@ HOMEPAGE = "http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" | |||
5 | LICENSE = "GPLv2+ & LGPLv2.1+" | 5 | LICENSE = "GPLv2+ & LGPLv2.1+" |
6 | LICENSE_${PN} = "GPLv2+" | 6 | LICENSE_${PN} = "GPLv2+" |
7 | LICENSE_libudev = "LGPLv2.1+" | 7 | LICENSE_libudev = "LGPLv2.1+" |
8 | #LICENSE_libgudev = "LGPLv2.1+" | 8 | LICENSE_libgudev = "LGPLv2.1+" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ |
10 | file://libudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 10 | file://libudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
11 | file://extras/gudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | 11 | file://extras/gudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" |
12 | 12 | ||
13 | # the following dependency is needed for udev-extras | 13 | DEPENDS = "acl glib-2.0 libusb usbutils pciutils linux-libc-headers gperf-native libxslt-native" |
14 | #DEPENDS = "libacl glib-2.0 libusb usbutils pciutils linux-libc-headers gperf-native" | ||
15 | RPROVIDES_${PN} = "hotplug" | 14 | RPROVIDES_${PN} = "hotplug" |
16 | RRECOMMENDS_${PN} += "udev-extraconf udev-cache" | 15 | RRECOMMENDS_${PN} += "udev-extraconf udev-cache usbutils-ids pciutils-ids" |
16 | RDEPENDS_libudev = "${PN} (= ${EXTENDPV})" | ||
17 | 17 | ||
18 | SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ | 18 | SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ |
19 | file://run.rules \ | 19 | file://run.rules \ |
@@ -34,9 +34,11 @@ inherit autotools pkgconfig update-rc.d | |||
34 | # udevd/udevadm -> /sbin/, libudev.so.* -> /lib/ | 34 | # udevd/udevadm -> /sbin/, libudev.so.* -> /lib/ |
35 | sbindir = "${base_sbindir}" | 35 | sbindir = "${base_sbindir}" |
36 | libexecdir = "${base_libdir}/udev" | 36 | libexecdir = "${base_libdir}/udev" |
37 | EXTRA_OECONF = "--disable-extras --disable-introspection --with-rootlibdir=${base_libdir}" | 37 | EXTRA_OECONF = "--disable-introspection --with-rootlibdir=${base_libdir} \ |
38 | --with-pci-ids-path=${datadir}/pci.ids" | ||
38 | 39 | ||
39 | PACKAGES =+ "udev-cache libudev libudev-dev libudev-dbg" | 40 | PACKAGES =+ "udev-cache libudev libudev-dev libudev-dbg" |
41 | PACKAGES =+ "libgudev libgudev-dev libgudev-dbg" | ||
40 | PACKAGE_ARCH_h2200 = "h2200" | 42 | PACKAGE_ARCH_h2200 = "h2200" |
41 | 43 | ||
42 | INITSCRIPT_PACKAGES = "udev udev-cache" | 44 | INITSCRIPT_PACKAGES = "udev udev-cache" |
@@ -45,16 +47,19 @@ INITSCRIPT_PARAMS_udev = "start 04 S ." | |||
45 | INITSCRIPT_NAME_udev-cache = "udev-cache" | 47 | INITSCRIPT_NAME_udev-cache = "udev-cache" |
46 | INITSCRIPT_PARAMS_udev-cache = "start 36 S ." | 48 | INITSCRIPT_PARAMS_udev-cache = "start 36 S ." |
47 | 49 | ||
48 | FILES_${PN} += "${libexecdir} ${datadir}/pkgconfig/udev.pc" | 50 | FILES_${PN} += "${libexecdir} ${datadir}/pkgconfig/udev.pc ${libdir}/ConsoleKit" |
49 | FILES_${PN}-dbg += "${libexecdir}/.debug" | 51 | FILES_${PN}-dbg += "${libexecdir}/.debug" |
50 | FILES_${PN}-dev = "" | 52 | FILES_${PN}-dev = "" |
51 | FILES_libudev = "${base_libdir}/libudev.so.*" | 53 | FILES_libudev = "${base_libdir}/libudev.so.*" |
52 | FILES_libudev-dbg = "${base_libdir}/.debug/libudev.so.*" | 54 | FILES_libudev-dbg = "${base_libdir}/.debug/libudev.so.*" |
53 | FILES_libudev-dev = "${includedir}/libudev.h ${libdir}/libudev.so ${libdir}/libudev.la \ | 55 | FILES_libudev-dev = "${includedir}/libudev.h ${libdir}/libudev.so ${libdir}/libudev.la \ |
54 | ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc" | 56 | ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc" |
57 | FILES_libgudev = "${libdir}/libgudev*.so.*" | ||
58 | FILES_libgudev-dbg = "${libdir}/.debug/libgudev*.so.*" | ||
59 | FILES_libgudev-dev = "${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libgudev*.la \ | ||
60 | ${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc" | ||
55 | FILES_udev-cache = "${sysconfdir}/init.d/udev-cache" | 61 | FILES_udev-cache = "${sysconfdir}/init.d/udev-cache" |
56 | 62 | ||
57 | |||
58 | do_install_append () { | 63 | do_install_append () { |
59 | install -d ${D}${sysconfdir}/init.d | 64 | install -d ${D}${sysconfdir}/init.d |
60 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev | 65 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev |
diff --git a/meta/packages/udev/udev_158.bb b/meta/packages/udev/udev_158.bb index fbdb147ca3..58afd5bc3a 100644 --- a/meta/packages/udev/udev_158.bb +++ b/meta/packages/udev/udev_158.bb | |||
@@ -1,3 +1,3 @@ | |||
1 | include udev-new.inc | 1 | include udev-new.inc |
2 | 2 | ||
3 | PR = "r0" | 3 | PR = "r1" |