* Run depmod when the rootfs gets generated.

Signed-off-by: Andreas Oberritter <[email protected]>
---
 meta/classes/module.bbclass |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index 53c16b7..e370b24 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -37,15 +37,16 @@ module_do_install() {
 }
 
 pkg_postinst_append () {
-       if [ -n "$D" ]; then
-               exit 1
-       fi
+if [ -n "$D" ]; then
+       ${HOST_PREFIX}depmod -A -b $D -F 
${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
+else
        depmod -a
        update-modules || true
+fi
 }
 
 pkg_postrm_append () {
-       update-modules || true
+update-modules || true
 }
 
 EXPORT_FUNCTIONS do_compile do_install
-- 
1.7.5.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to