On 7/05/2013 7:48 PM, Robert Yang wrote:
-oe_mkext4fs () {
-       genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} $1
-       tune2fs -O extents,uninit_bg,dir_index,has_journal $1
-       e2fsck -yfDC0 $1 || chk=$?
-       case $chk in
-       0|1|2)
-           ;;
-       *)
-           return $chk
-           ;;
-       esac
+       # Create a sparse image block
+       dd if=/dev/zero of=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$fstype 
seek=$ROOTFS_SIZE count=0 bs=1k
+       yes | mkfs.$fstype $extra_imagecmd 
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$fstype
yes | mkfs.$fstype can be simplified to mkfs.$fstype -F
+       populate-extfs.sh ${IMAGE_ROOTFS} 
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$fstype
  }
Regards,
Jonathan

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to