summaryrefslogtreecommitdiff
path: root/meta/classes/module.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-01-17 16:58:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 13:06:59 +0000
commit6fafbf71adb8b34211c2bc24226f0b1eb206a7d3 (patch)
tree2ff6a74e439dda83f4d21d19c7497e357599f8f3 /meta/classes/module.bbclass
parent427010fd289534d4b4af0bfd74419a4ad0eb5a39 (diff)
downloadopenembedded-core-6fafbf71adb8b34211c2bc24226f0b1eb206a7d3.tar.gz
openembedded-core-6fafbf71adb8b34211c2bc24226f0b1eb206a7d3.tar.bz2
openembedded-core-6fafbf71adb8b34211c2bc24226f0b1eb206a7d3.zip
module.bbclass: do not use update-modules anymore
update-modules is obsolete. The bbclass was updated not to use it anymore. [YOCTO #3598] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/module.bbclass')
-rw-r--r--meta/classes/module.bbclass13
1 files changed, 9 insertions, 4 deletions
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index ebb0880cd6..d477caa065 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -1,4 +1,4 @@
-RDEPENDS_${PN} += "kernel-image ${@oe.utils.contains('DISTRO_FEATURES', 'update-modules', 'update-modules', '', d)}"
+RDEPENDS_${PN} += "kernel-image"
DEPENDS += "virtual/kernel"
inherit module-base
@@ -27,13 +27,18 @@ module_do_install() {
pkg_postinst_append () {
if [ -z "$D" ]; then
- depmod -a
- update-modules || true
+ depmod -a ${KERNEL_VERSION}
+else
+ depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
fi
}
pkg_postrm_append () {
-update-modules || true
+if [ -z "$D" ]; then
+ depmod -a ${KERNEL_VERSION}
+else
+ depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
+fi
}
EXPORT_FUNCTIONS do_compile do_install