]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: Make the kernel depmod dependent on the presence of a kernel - some...
authorRichard Purdie <richard@openedhand.com>
Thu, 9 Oct 2008 19:08:11 +0000 (19:08 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 9 Oct 2008 19:08:11 +0000 (19:08 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5473 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/image.bbclass

index 0037ab5f4bfa5ccd0c7e275818de473e231884a5..239d93723828127015fcd342f00b1f782dff7d4a 100644 (file)
@@ -118,10 +118,12 @@ fakeroot do_rootfs () {
        # 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`
+       if [ -e ${STAGING_KERNEL_DIR}/kernel-abiversion ]; then
+               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
+               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
+       fi
 
        ${IMAGE_POSTPROCESS_COMMAND}