summaryrefslogtreecommitdiffstats
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
parent1ef8ccb0f6cdb88013b9eca6e8ccb42683d5e268 (diff)
downloadpoky-fc467314f87b24444daa2b944889f4fa5f5f2f24.tar.gz
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
-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 0037ab5f4b..239d937238 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -118,10 +118,12 @@ fakeroot do_rootfs () {
118 # This part is done by kernel-module-* postinstall scripts but if image do 118 # This part is done by kernel-module-* postinstall scripts but if image do
119 # not contains modules at all there are few moments in boot sequence with 119 # not contains modules at all there are few moments in boot sequence with
120 # "unable to open modules.dep" message. 120 # "unable to open modules.dep" message.
121 KERNEL_VERSION=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion` 121 if [ -e ${STAGING_KERNEL_DIR}/kernel-abiversion ]; then
122 KERNEL_VERSION=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion`
122 123
123 mkdir -p ${IMAGE_ROOTFS}/lib/modules/$KERNEL_VERSION 124 mkdir -p ${IMAGE_ROOTFS}/lib/modules/$KERNEL_VERSION
124 ${TARGET_SYS}-depmod-2.6 -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION 125 ${TARGET_SYS}-depmod-2.6 -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION
126 fi
125 127
126 ${IMAGE_POSTPROCESS_COMMAND} 128 ${IMAGE_POSTPROCESS_COMMAND}
127 129