diff --git a/recovery/Makefile b/recovery/Makefile index 1ef142eda..e6e3f7041 100644 --- a/recovery/Makefile +++ b/recovery/Makefile @@ -11,7 +11,7 @@ FWMAXSIZE = $(shell echo $$(($(PLATFORM_SIZE)*1024))) BINS = bootrom.bin fullimage.bin $(INSTALLFW) all: $(BINS) - @FWSIZE=$$(stat -c "%s" $(INSTALLFW));\ + @FWSIZE=$$(wc -c < $(INSTALLFW));\ if [ $$FWSIZE -gt $(FWMAXSIZE) ]; then \ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \ echo "ERROR: Firmware image too large for your platform! $$FWSIZE > $(FWMAXSIZE)"; \