mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-29 22:52:41 +00:00
bsd/gnu-safe file byte calc
This commit is contained in:
1 parent
089ae507be
commit
c9642d53c4
1 file changed
+1
-1
+1
-1
@@ -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)"; \
|
||||
|
||||
Reference in new issue
Block a user