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

login
register
mail settings
Submitter Scott Wood
Date Jan. 5, 2012, 11:16 p.m.
Message ID <20120105231610.GA10980@schlenkerla.am.freescale.net>
Download mbox | patch
Permalink /patch/134554/
State Superseded
Delegated to: Wolfgang Denk
Headers show

Comments

Scott Wood - Jan. 5, 2012, 11:16 p.m.
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(-)
Wolfgang Denk - Feb. 11, 2012, 9:20 p.m.
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

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