diff mbox

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

Message ID 20120220225625.GA19731@schlenkerla.am.freescale.net
State Accepted
Commit 0c185696061afacfe78fc1bc405a0f6ed1f3f7a6
Delegated to: Anatolij Gustschin
Headers show

Commit Message

Scott Wood Feb. 20, 2012, 10:56 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>
---
v2: Only invoke size once.

 MAKEALL |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

Comments

Tom Rini Feb. 23, 2012, 4:05 p.m. UTC | #1
On Mon, Feb 20, 2012 at 3:56 PM, Scott Wood <scottwood@freescale.com> 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>

Acked-by: Tom Rini <trini@ti.com>
Anatolij Gustschin March 26, 2012, 11:58 a.m. UTC | #2
Hello Scott,

On Mon, 20 Feb 2012 16:56:25 -0600
Scott Wood <scottwood@freescale.com> 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>
> ---
> v2: Only invoke size once.
> 
>  MAKEALL |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

Applied to u-boot-staging/agust@denx.de. Thanks.

Anatolij
diff mbox

Patch

diff --git a/MAKEALL b/MAKEALL
index 0f2b4a1..c33be1d 100755
--- 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