[oe-commits] org.oe.dev update-modules: Insert special case work-around for a legacy corner case of a machine which supports a 2.6 kernel but is used in a distro which must use a 2.4 kernel. It's ugly, just look away now. It has the blessing of RP and hrw, however.

rwhitby commit openembedded-commits at lists.openembedded.org
Wed Aug 29 18:08:16 UTC 2007


update-modules: Insert special case work-around for a legacy corner case of a machine which supports a 2.6 kernel but is used in a distro which must use a 2.4 kernel.  It's ugly, just look away now.  It has the blessing of RP and hrw, however.

Author: rwhitby at nslu2-linux.org
Branch: org.openembedded.dev
Revision: 288504c0e005ddaf483f67c32ceb9648a94cc671
ViewMTN: http://monotone.openembedded.org/revision.psp?id=288504c0e005ddaf483f67c32ceb9648a94cc671
Files:
1
packages/update-modules/update-modules_1.0.bb
Diffs:

#
# mt diff -r379fa76ead1a67a4d5ade21cbca2a551c8348f08 -r288504c0e005ddaf483f67c32ceb9648a94cc671
#
# 
# 
# patch "packages/update-modules/update-modules_1.0.bb"
#  from [c826ebfc84c887b036affefdc32161fd9f4c103c]
#    to [7244af12c753fc05bb699d727f414e78975ec933]
# 
============================================================
--- packages/update-modules/update-modules_1.0.bb	c826ebfc84c887b036affefdc32161fd9f4c103c
+++ packages/update-modules/update-modules_1.0.bb	7244af12c753fc05bb699d727f414e78975ec933
@@ -1,9 +1,9 @@ RDEPENDS = "${@base_contains("MACHINE_FE
 SECTION = "base"
 DESCRIPTION = "Script to manage module configuration files"
 LICENSE = "GPLv2"
 PACKAGE_ARCH = "all"
 RDEPENDS = "${@base_contains("MACHINE_FEATURES", "kernel26",  "module-init-tools-depmod","modutils-depmod",d)} "
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "file://update-modules"
 
@@ -18,3 +18,13 @@ do_install() {
 	install -d ${D}${sbindir}
 	install ${WORKDIR}/update-modules ${D}${sbindir}
 }
+
+# The Unslung distro uses a 2.4 kernel for a machine (the NSLU2) which
+# supports both 2.4 and 2.6 kernels.  Rather than forcing OE to have
+# to deal with that unique legacy corner case, we just nullify the
+# RDEPENDS here and handle it in the Unslung image recipe. I know this
+# is ugly.  Please don't remove it unless you first make the RDEPENDS
+# line at the top of this file understand that a machine can be used
+# in both a 2.4 kernel distro and a 2.6 kernel distro.  Really, it's
+# not worth the effort to do that, so just overlook the next line.
+RDEPENDS_unslung = ""






More information about the Openembedded-commits mailing list