From: Piotr Dymacz Date: Wed, 14 Sep 2016 20:13:42 +0000 (+0200) Subject: Get rid of bc in top Makefile X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7fa183e400f8c84a9c2bfd3c94f9f3f41cd025d;p=oweals%2Fu-boot_mod.git Get rid of bc in top Makefile --- 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!); \