[oe-commits] Laurentiu Palcu : module.bbclass: do not use update-modules anymore
git at git.openembedded.org
git at git.openembedded.org
Sun Jan 20 13:18:05 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 6fafbf71adb8b34211c2bc24226f0b1eb206a7d3
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6fafbf71adb8b34211c2bc24226f0b1eb206a7d3
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Thu Jan 17 16:58:46 2013 +0200
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/module.bbclass | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index ebb0880..d477caa 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
More information about the Openembedded-commits
mailing list