2010-09-27 14:44:05 +00:00
|
|
|
SUMMARY = "/dev/ and hotplug management daemon"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
DESCRIPTION = "udev is a daemon which dynamically creates and removes device nodes from \
|
2010-09-27 14:44:05 +00:00
|
|
|
/dev/, handles hotplug events and loads drivers at boot time."
|
2012-02-13 04:48:09 +00:00
|
|
|
HOMEPAGE = "http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html"
|
2011-12-15 23:15:32 +00:00
|
|
|
LICENSE = "GPLv2.0+ & LGPLv2.1+"
|
|
|
|
LICENSE_${PN} = "GPLv2.0+"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
LICENSE_libudev = "LGPLv2.1+"
|
2010-07-29 12:24:16 +00:00
|
|
|
LICENSE_libgudev = "LGPLv2.1+"
|
2012-09-21 20:57:21 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
|
|
|
file://src/COPYING;md5=17c4e5fb495e6707ac92a3864926f979 \
|
|
|
|
file://src/gudev/COPYING;md5=fb494485a7d0505308cb68e4997cc266"
|
2013-01-05 03:19:22 +00:00
|
|
|
|
|
|
|
LDFLAGS += "-lrt"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
|
2015-01-12 22:25:31 +00:00
|
|
|
DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
RPROVIDES_${PN} = "hotplug"
|
|
|
|
|
2011-03-22 18:54:38 +00:00
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
|
2012-09-21 20:57:21 +00:00
|
|
|
file://0001-Fixing-keyboard_force_release.sh-shell-script-path.patch \
|
2013-09-13 21:16:44 +00:00
|
|
|
file://avoid-mouse-autosuspend.patch \
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
file://run.rules \
|
|
|
|
file://udev.rules \
|
|
|
|
file://devfs-udev.rules \
|
|
|
|
file://links.conf \
|
|
|
|
file://permissions.rules \
|
|
|
|
file://local.rules \
|
|
|
|
file://udev-cache \
|
2011-12-20 14:13:14 +00:00
|
|
|
file://udev-cache.default \
|
2013-12-02 12:39:12 +00:00
|
|
|
file://add-install-ptest.patch \
|
2015-01-25 15:33:38 +00:00
|
|
|
file://fix_rule-syntax-regex-ptest.patch \
|
2013-12-02 12:39:12 +00:00
|
|
|
file://run-ptest \
|
2013-05-26 11:13:06 +00:00
|
|
|
file://init"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
|
2013-12-02 12:39:12 +00:00
|
|
|
inherit autotools pkgconfig update-rc.d ptest
|
2015-01-25 15:33:38 +00:00
|
|
|
RDEPENDS_${PN}-ptest += "make perl python"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
|
2013-02-09 22:09:56 +00:00
|
|
|
libexecdir = "${base_libdir}"
|
2012-09-21 20:57:21 +00:00
|
|
|
EXTRA_OECONF = "--disable-introspection \
|
|
|
|
--with-rootlibdir=${base_libdir} \
|
|
|
|
--with-pci-ids-path=${datadir}/pci.ids \
|
|
|
|
ac_cv_file__usr_share_pci_ids=no \
|
|
|
|
ac_cv_file__usr_share_hwdata_pci_ids=no \
|
|
|
|
ac_cv_file__usr_share_misc_pci_ids=yes \
|
|
|
|
--sbindir=${base_sbindir} \
|
2013-04-17 14:53:21 +00:00
|
|
|
--libexecdir=${nonarch_base_libdir} \
|
2012-09-21 20:57:21 +00:00
|
|
|
--with-rootlibdir=${base_libdir} \
|
|
|
|
--with-rootprefix= \
|
2013-04-18 13:27:13 +00:00
|
|
|
--without-systemdsystemunitdir \
|
2012-09-21 20:57:21 +00:00
|
|
|
"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
|
2014-06-18 02:38:13 +00:00
|
|
|
PACKAGES =+ "udev-cache"
|
2013-11-14 02:45:48 +00:00
|
|
|
PACKAGES =+ "libudev"
|
|
|
|
PACKAGES =+ "libgudev"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
|
|
|
|
INITSCRIPT_PACKAGES = "udev udev-cache"
|
|
|
|
INITSCRIPT_NAME_udev = "udev"
|
2013-11-02 05:22:00 +00:00
|
|
|
INITSCRIPT_PARAMS_udev = "start 04 S ."
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
INITSCRIPT_NAME_udev-cache = "udev-cache"
|
|
|
|
INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
|
|
|
|
|
2014-06-18 02:38:13 +00:00
|
|
|
FILES_${PN} += "${libexecdir} ${libdir}/ConsoleKit ${nonarch_base_libdir}/udev ${bindir}/udevadm"
|
|
|
|
RRECOMMENDS_${PN} += "udev-cache"
|
2012-01-05 06:30:48 +00:00
|
|
|
|
2015-04-20 14:53:47 +00:00
|
|
|
# udev-utils has been removed as a package. Note that udev conflicts with udev-utils so that
|
|
|
|
# udev-utils is removed from systems on upgrade.
|
|
|
|
RCONFLICTS_${PN} += "udev-utils"
|
|
|
|
RREPLACES_${PN} += "udev-utils"
|
|
|
|
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
FILES_${PN}-dbg += "${libexecdir}/.debug"
|
2012-09-21 20:57:21 +00:00
|
|
|
FILES_${PN}-dbg += "${base_libdir}/udev/.debug/"
|
|
|
|
FILES_${PN}-dbg += "${base_libdir}/udev/.debug/*"
|
2013-04-17 14:53:21 +00:00
|
|
|
FILES_${PN}-dbg += "${nonarch_base_libdir}/udev/.debug/*"
|
2013-11-14 02:45:48 +00:00
|
|
|
FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc \
|
|
|
|
${includedir}/libudev.h ${libdir}/libudev.so ${libdir}/libudev.la \
|
|
|
|
${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc \
|
|
|
|
${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libgudev*.la \
|
|
|
|
${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
FILES_libudev = "${base_libdir}/libudev.so.*"
|
2011-07-01 17:59:29 +00:00
|
|
|
FILES_libgudev = "${base_libdir}/libgudev*.so.* ${libdir}/libgudev*.so.*"
|
2011-12-20 14:13:14 +00:00
|
|
|
FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
|
|
|
|
do_install_append () {
|
|
|
|
install -d ${D}${sysconfdir}/init.d
|
|
|
|
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
|
|
|
|
install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache
|
2013-04-17 14:53:21 +00:00
|
|
|
sed -i s%@UDEVD@%${nonarch_base_libdir}/udev/udevd% ${D}${sysconfdir}/init.d/udev
|
|
|
|
sed -i s%@UDEVD@%${nonarch_base_libdir}/udev/udevd% ${D}${sysconfdir}/init.d/udev-cache
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
|
2011-12-20 14:13:14 +00:00
|
|
|
install -d ${D}${sysconfdir}/default
|
|
|
|
install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache
|
|
|
|
|
|
|
|
touch ${D}${sysconfdir}/udev/cache.data
|
|
|
|
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
install -d ${D}${sysconfdir}/udev/rules.d/
|
|
|
|
|
|
|
|
install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
|
|
|
|
|
2012-08-25 15:46:48 +00:00
|
|
|
# hid2hci has moved to bluez4. removed in udev as of version 169
|
|
|
|
rm -f ${D}${base_libdir}/udev/hid2hci
|
2012-09-21 20:57:21 +00:00
|
|
|
|
2012-10-29 10:58:56 +00:00
|
|
|
echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf
|
udev: upgrade to version 158
older versions are kept untouched for now
changes:
- udev has diverged a lot, the udev.inc was based on a quite dated
version, thus doesn't reflect current status of udev, create a
new include file udev-new.inc to adapt
- separate libudev{,-dev,-dbg} apart from udev
- --with-udev-prefix is removed. change ${libexecdir} to
${base_libdir}/udev, which is described in INSTALL file.
- udev.pc is provided in ${datadir}/pkgconfig, since it's used
to indicate the existence of udev itself instead of development
headers and libs, pack it in udev instead of udev-dev
- udev-extras is disabled since we are missing libacl, this also
means gudev is missing as for now
- other cleanups, e.g. do_stage, do_install, EXTRA_OEMAKE
todo:
- udev-extras
- remove old udev versions
- rebase udev-145 on udev-new.inc as well
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-21 05:34:35 +00:00
|
|
|
}
|
2013-01-21 12:15:31 +00:00
|
|
|
|
|
|
|
# As systemd also builds udev, skip this package if we're doing a systemd build.
|
|
|
|
python () {
|
2014-04-24 18:59:19 +00:00
|
|
|
if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
|
2013-01-21 12:15:31 +00:00
|
|
|
raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
|
|
|
|
}
|
2013-12-02 12:39:12 +00:00
|
|
|
do_compile_ptest() {
|
|
|
|
oe_runmake test-udev
|
|
|
|
}
|