From 40e3fb133a467addff6f63b712d3d3d680334e98 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 28 May 2009 10:07:09 +0200 Subject: linux(-rp).inc: Quirk for udev greater or equal 141 * opt-in, distros can set UDEV_GE_141 = 1 to get the quirks applied * currently unsets CONFIG_SYSFS_DEPRECATED* per udev README --- recipes/linux/linux.inc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'recipes/linux/linux.inc') diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc index 5a4a11fecf..42fb56a22b 100644 --- a/recipes/linux/linux.inc +++ b/recipes/linux/linux.inc @@ -9,6 +9,9 @@ RPSRC = "http://www.rpsys.net/openzaurus/patches/archive" # Enable OABI compat for people stuck with obsolete userspace ARM_KEEP_OABI ?= "1" +# Quirk for udev greater or equal 141 +UDEV_GE_141 ?= "0" + # Specify the commandline for your device # Boot from mmc @@ -103,6 +106,20 @@ do_configure_prepend() { echo 'CONFIG_LOCALVERSION=""' >>${S}/.config echo '# CONFIG_LOCALVERSION_AUTO is not set' >>${S}/.config + + # + # Udev quirks + # + + # Newer versions of udev mandate that sysfs doesn't have deprecated entries + if [ "${UDEV_GE_141}" = "1" ] ; then + sed -e /CONFIG_SYSFS_DEPRECATED/d \ + -e /CONFIG_SYSFS_DEPRECATED_V2/d \ + -i '${S}/.config' + echo '# CONFIG_SYSFS_DEPRECATED is not set' >> ${S}/.config + echo '# CONFIG_SYSFS_DEPRECATED_V2 is not set' >> ${S}/.config + fi + # # root-over-nfs-over-usb-eth support. Limited, but should cover some cases. # Enable this by setting a proper CMDLINE_NFSROOT_USB. -- cgit 1.2.3-korg