Commit e71796a70a6c03829e7a666efb4e9770da875af6

Authored by Joe Hershberger
Committed by Tom Rini
1 parent 3bde6888c0

MAKEALL: Don't try to print size when ./u-boot is deleted

In the case of BUILD_NBUILDS > 1, MAKEALL would try to print the size
immediately after the u-boot binary is deleted by the call to:

make -s clean

Move the size print to before the clean

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>

Showing 1 changed file with 7 additions and 7 deletions Side-by-side Diff

... ... @@ -655,6 +655,13 @@
655 655 RC=1
656 656 fi
657 657  
  658 + OBJS=${output_dir}/u-boot
  659 + if [ -e ${output_dir}/spl/u-boot-spl ]; then
  660 + OBJS="${OBJS} ${output_dir}/spl/u-boot-spl"
  661 + fi
  662 +
  663 + ${CROSS_COMPILE}size ${OBJS} | tee -a ${LOG_DIR}/$target.MAKELOG
  664 +
658 665 if [ $BUILD_MANY == 1 ] ; then
659 666 trap - TERM
660 667  
... ... @@ -678,13 +685,6 @@
678 685 rm ${LOG_DIR}/${target}.ERR
679 686 fi
680 687 fi
681   -
682   - OBJS=${output_dir}/u-boot
683   - if [ -e ${output_dir}/spl/u-boot-spl ]; then
684   - OBJS="${OBJS} ${output_dir}/spl/u-boot-spl"
685   - fi
686   -
687   - ${CROSS_COMPILE}size ${OBJS} | tee -a ${LOG_DIR}/$target.MAKELOG
688 688  
689 689 [ -e "${LOG_DIR}/${target}.ERR" ] && cat "${LOG_DIR}/${target}.ERR"
690 690