summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-01-19 12:06:00 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-20 12:51:28 +0100
commit3de3b677ee3adc4e10235b623a8e0aa45be48893 (patch)
tree71dd2684902e3012de29f43d32a16b4d1cbfbc2d /Makefile
parent6f142500387365a3b8a4331c2540b7aa2a9bf9b6 (diff)
downloadbarebox-3de3b677ee3adc4e10235b623a8e0aa45be48893.tar.gz
barebox-3de3b677ee3adc4e10235b623a8e0aa45be48893.tar.xz
Makefile: move cmd_check_file_size to Makefile.lib
so we can use to check pbl Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 0 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 0c07463055..8e15c034de 100644
--- a/Makefile
+++ b/Makefile
@@ -547,17 +547,6 @@ quiet_cmd_barebox_version = GEN .version
fi; \
$(MAKE) $(build)=common
-# Check size of a file
-quiet_cmd_check_file_size = CHKSIZE $@
- cmd_check_file_size = set -e; \
- size=`stat -c%s $@`; \
- max_size=`printf "%d" $2`; \
- if [ $$size -gt $$max_size ] ; \
- then \
- echo "$@ size $$size > of the maximum size $$max_size" >&2; \
- exit 1 ; \
- fi;
-
# Generate System.map
quiet_cmd_sysmap = SYSMAP
cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap