Skip to content

Commit

Permalink
Merge pull request #71 from aparcar/too_big
Browse files Browse the repository at this point in the history
error if image is too big for device fix #21
  • Loading branch information
nicopace authored Jun 20, 2018
2 parents 2f50704 + 1f61d61 commit 37ed251
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cooker
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,18 @@ cook() {
EXTRA_IMAGE_NAME="$fw_extra_name" \
BIN_DIR="$output_dir" \
`ls $ib_files_dir/* 1>/dev/null 2>&1 && echo "FILES=$ib_files_dir"` \
$force_no_update $files_remove
$force_no_update $files_remove | tee last-build.log
ERROR=$?
if (($ERROR != 0)); then
echo -e "\n-> Firmware not cooked, something wrong happened on the ImageBuilder compilation process"
ERROR_PROFILES="$ERROR_PROFILES $target/$profile/$flavor"
else
echo -e "\n-> Firmware for target $target, profile $profile and flavor $flavor cooked!\nFind the binaries in $output_dir directory"
if cat last-build.log | grep "images are too big"; then
echo -e "\n-> Firmware is too big for device. Please try again with less packages or a mini flavor"
ERROR=1
else
echo -e "\n-> Firmware for target $target, profile $profile and flavor $flavor cooked!\nFind the binaries in $output_dir directory"
fi
fi
return $ERROR
}
Expand Down

0 comments on commit 37ed251

Please sign in to comment.