public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size
@ 2014-07-23  0:08 Chris Packham
  2014-07-23 10:27 ` Simon Glass
  0 siblings, 1 reply; 12+ messages in thread
From: Chris Packham @ 2014-07-23  0:08 UTC (permalink / raw)
  To: u-boot

file_size was being calculated using back-ticks but map_size uses
$(shell ...). Update the file_size calculation to use $(shell ...).

Signed-off-by: Chris Packham <judge.packham@gmail.com>
---
The back ticks didn't work in my environment (GNU Make 3.81). Updating
to use $(shell ...) makes sense from a consistency view even if the
problem is my environment.

 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ca212b5..f6a0f68 100644
--- a/Makefile
+++ b/Makefile
@@ -786,7 +786,7 @@ u-boot.hex u-boot.srec: u-boot FORCE
 OBJCOPYFLAGS_u-boot.bin := -O binary
 
 binary_size_check: u-boot.bin System.map FORCE
-	@file_size=`stat -c %s u-boot.bin` ; \
+	file_size=$(shell stat -c %s u-boot.bin) ; \
 	map_size=$(shell cat System.map | \
 		awk '/_image_copy_start/ {start = $$1} /_image_binary_end/ {end = $$1} END {if (start != "" && end != "") print "ibase=16; " toupper(end) " - " toupper(start)}' \
 		| bc); \
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-08-10 22:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23  0:08 [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size Chris Packham
2014-07-23 10:27 ` Simon Glass
2014-07-23 18:03   ` Tom Rini
2014-07-23 19:24     ` Jeroen Hofstee
2014-07-23 20:07       ` Tom Rini
2014-07-24  5:14   ` Chris Packham
2014-07-24  5:27     ` [U-Boot] [PATCH] Makefile: use u-boot.map for binary_size_check Chris Packham
2014-07-24  8:31       ` Wolfgang Denk
2014-07-24 13:50         ` Tom Rini
2014-07-24 21:08           ` Chris Packham
2014-08-10 22:22       ` [U-Boot] " Tom Rini
2014-07-25 14:14     ` [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox