summaryrefslogtreecommitdiff
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-09 19:08:11 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-09 19:08:11 +0000
commitfc467314f87b24444daa2b944889f4fa5f5f2f24 (patch)
tree7f65d7a7a115342006ad4919911d0dab3e38d993 /meta/classes/image.bbclass
parent1ef8ccb0f6cdb88013b9eca6e8ccb42683d5e268 (diff)
downloadopenembedded-core-fc467314f87b24444daa2b944889f4fa5f5f2f24.tar.gz
openembedded-core-fc467314f87b24444daa2b944889f4fa5f5f2f24.tar.bz2
openembedded-core-fc467314f87b24444daa2b944889f4fa5f5f2f24.tar.xz
openembedded-core-fc467314f87b24444daa2b944889f4fa5f5f2f24.zip
image.bbclass: Make the kernel depmod dependent on the presence of a kernel - some images eg an initramfs don't have this
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5473 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0037ab5f4..239d93723 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -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}