summaryrefslogtreecommitdiff
path: root/recipes/linux/linux.inc
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2009-06-26 22:32:52 +0400
committerSergey Lapin <slapin@ossfans.org>2009-06-26 22:32:52 +0400
commitc91a54aef8a39e7cbb2571574f56f2cf12104ff1 (patch)
treee68102d093c111affd9208b78df9c18aa837c3b8 /recipes/linux/linux.inc
parent323edc5ef4c3d8572ee0b4fd185ca6e3166d6b45 (diff)
parent84efca2e2ad21d3d7cea68c0327f91aaf773eb67 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Conflicts: recipes/musicpd/mpd_0.14.2.bb
Diffstat (limited to 'recipes/linux/linux.inc')
-rw-r--r--recipes/linux/linux.inc17
1 files changed, 17 insertions, 0 deletions
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.