]> git.sur5r.net Git - u-boot/blobdiff - MAKEALL
mkenvimage: Really set the redundant byte when applicable
[u-boot] / MAKEALL
diff --git a/MAKEALL b/MAKEALL
index 0f2b4a1b9491652f24c9873c70d721ed6f93d0c9..c33be1d4b53668cf16a2bada88d3c95c1c9eaec0 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -511,8 +511,12 @@ build_target() {
 
        TOTAL_CNT=$((TOTAL_CNT + 1))
 
-       ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
-                               | tee -a ${LOG_DIR}/$target.MAKELOG
+       OBJS=${BUILD_DIR}/u-boot
+       if [ -e ${BUILD_DIR}/spl/u-boot-spl ]; then
+               OBJS="${OBJS} ${BUILD_DIR}/spl/u-boot-spl"
+       fi
+
+       ${CROSS_COMPILE}size ${OBJS} | tee -a ${LOG_DIR}/$target.MAKELOG
 }
 build_targets() {
        for t in "$@" ; do