summaryrefslogtreecommitdiffstats
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:28:07 +0000
commit173a61826305838ba56a9da50491e657b4843f56 (patch)
tree4173ecaf81630337e8ca1ab7ababf95bf02607be /meta/classes/module.bbclass
parentfb7ea95fc367728f4fcfb0da4f5779e3d19df1bc (diff)
downloadpoky-173a61826305838ba56a9da50491e657b4843f56.tar.gz
module.bbclass: do not use update-modules anymore
update-modules is obsolete. The bbclass was updated not to use it anymore. [YOCTO #3598] (From OE-Core rev: 6fafbf71adb8b34211c2bc24226f0b1eb206a7d3) 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 @@
1RDEPENDS_${PN} += "kernel-image ${@oe.utils.contains('DISTRO_FEATURES', 'update-modules', 'update-modules', '', d)}" 1RDEPENDS_${PN} += "kernel-image"
2DEPENDS += "virtual/kernel" 2DEPENDS += "virtual/kernel"
3 3
4inherit module-base 4inherit module-base
@@ -27,13 +27,18 @@ module_do_install() {
27 27
28pkg_postinst_append () { 28pkg_postinst_append () {
29if [ -z "$D" ]; then 29if [ -z "$D" ]; then
30 depmod -a 30 depmod -a ${KERNEL_VERSION}
31 update-modules || true 31else
32 depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
32fi 33fi
33} 34}
34 35
35pkg_postrm_append () { 36pkg_postrm_append () {
36update-modules || true 37if [ -z "$D" ]; then
38 depmod -a ${KERNEL_VERSION}
39else
40 depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
41fi
37} 42}
38 43
39EXPORT_FUNCTIONS do_compile do_install 44EXPORT_FUNCTIONS do_compile do_install