diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-10-09 09:36:00 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-10-09 09:36:00 +0000 |
commit | 2eadfa913f42bc73134ab5cd4f93eb2ffa1c1aa7 (patch) | |
tree | 5795ccba51fd0e4d36d5bb4e997f3a2249bdaad3 /meta | |
parent | 51268c1f15185a391af5133dc4a9e5da36268abf (diff) | |
download | openembedded-core-2eadfa913f42bc73134ab5cd4f93eb2ffa1c1aa7.tar.gz openembedded-core-2eadfa913f42bc73134ab5cd4f93eb2ffa1c1aa7.tar.bz2 openembedded-core-2eadfa913f42bc73134ab5cd4f93eb2ffa1c1aa7.tar.xz openembedded-core-2eadfa913f42bc73134ab5cd4f93eb2ffa1c1aa7.zip |
image.bbclass: generate modules.dep
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5468 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 5af8cef83..0037ab5f4 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -114,6 +114,15 @@ fakeroot do_rootfs () { # (new format for cross arch compatibility) ldconfig -r ${IMAGE_ROOTFS} -c new + # (re)create kernel modules dependencies + # This part is done by kernel-module-* postinstall scripts but if image do + # not contains modules at all there are few moments in boot sequence with + # "unable to open modules.dep" message. + KERNEL_VERSION=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion` + + mkdir -p ${IMAGE_ROOTFS}/lib/modules/$KERNEL_VERSION + ${TARGET_SYS}-depmod-2.6 -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION + ${IMAGE_POSTPROCESS_COMMAND} ${MACHINE_POSTPROCESS_COMMAND} |