Get rid of bc in top Makefile
authorPiotr Dymacz <pepe2k@gmail.com>
Wed, 14 Sep 2016 20:13:42 +0000 (22:13 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Wed, 14 Sep 2016 20:13:42 +0000 (22:13 +0200)
Makefile

index 74e468924b328d05f79044f985e5b3245228459d..a2812a7b7046a3a2711c8b7845f248b91da5f162 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -125,7 +125,7 @@ endef
 define size_chk
   $(call echo_green,Checking size of the image...)
 
-  if [ `wc -c < $(1)` -gt `echo $(2)*1024 | bc` ]; then \
+  if [ `wc -c < $(1)` -gt $$(($(2) * 1024)) ]; then \
     echo; \
     $(call echo_red,  ======================); \
     $(call echo_red,  IMAGE SIZE IS TOO BIG!); \