diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 8 |
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 | ||