diff mbox

[U-Boot] MAKEALL: display SPL size if present

Message ID 20120105231610.GA10980@schlenkerla.am.freescale.net
State Superseded
Delegated to: Wolfgang Denk
Headers show

Commit Message

Scott Wood Jan. 5, 2012, 11:16 p.m. UTC
This makes it easier to detect changes in the SPL portion,
as can currently be done for the main U-Boot image.

Signed-off-by: Scott Wood <scottwood@freescale.com>
---
 MAKEALL |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk Feb. 11, 2012, 9:20 p.m. UTC | #1
Dear Scott Wood,

In message <20120105231610.GA10980@schlenkerla.am.freescale.net> you wrote:
> This makes it easier to detect changes in the SPL portion,
> as can currently be done for the main U-Boot image.
> 
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
>  MAKEALL |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/MAKEALL b/MAKEALL
> index f735af6..395e982 100755
> --- a/MAKEALL
> +++ b/MAKEALL
> @@ -508,6 +508,11 @@ build_target() {
>  
>  	${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
>  				| tee -a ${LOG_DIR}/$target.MAKELOG
> +
> +	if [ -e ${BUILD_DIR}/spl/u-boot-spl ]; then
> +		${CROSS_COMPILE}size ${BUILD_DIR}/spl/u-boot-spl \
> +					| tee -a ${LOG_DIR}/$target.MAKELOG
> +	fi

Can we please combine this into a single call to "size"?

Thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/MAKEALL b/MAKEALL
index f735af6..395e982 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -508,6 +508,11 @@  build_target() {
 
 	${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
 				| tee -a ${LOG_DIR}/$target.MAKELOG
+
+	if [ -e ${BUILD_DIR}/spl/u-boot-spl ]; then
+		${CROSS_COMPILE}size ${BUILD_DIR}/spl/u-boot-spl \
+					| tee -a ${LOG_DIR}/$target.MAKELOG
+	fi
 }
 build_targets() {
 	for t in "$@" ; do