From a7fa183e400f8c84a9c2bfd3c94f9f3f41cd025d Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Wed, 14 Sep 2016 22:13:42 +0200 Subject: [PATCH] Get rid of bc in top Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 74e4689..a2812a7 100644 --- 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!); \ -- 2.25.1