Advertisement
Guest User

bitbake sizecheck

a guest
Dec 1st, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. do_sizecheck() {
  2. if [ ! -z ${ROOTFS_MAXSIZE} ]; then
  3. size=$(ls -l ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 | awk '{ print $5}')
  4. echo "$size"
  5. if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
  6. bbfatal "This rootfs (size=$size) is too big for your device (${ROOTFS_MAXSIZE}). Please reduce the size of the rootfs."
  7. fi
  8. fi
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement