mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-24 00:50:27 +08:00
Merge pull request #1054 from jamiefiedler/fix_stat_filesize_for_bsd
bsd/gnu-safe file byte calc
This commit is contained in:
commit
d19de8d453
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ FWMAXSIZE = $(shell echo $$(($(PLATFORM_SIZE)*1024)))
|
||||||
BINS = bootrom.bin fullimage.bin $(INSTALLFW)
|
BINS = bootrom.bin fullimage.bin $(INSTALLFW)
|
||||||
|
|
||||||
all: $(BINS)
|
all: $(BINS)
|
||||||
@FWSIZE=$$(stat -c "%s" $(INSTALLFW));\
|
@FWSIZE=$$(wc -c < $(INSTALLFW));\
|
||||||
if [ $$FWSIZE -gt $(FWMAXSIZE) ]; then \
|
if [ $$FWSIZE -gt $(FWMAXSIZE) ]; then \
|
||||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
|
||||||
echo "ERROR: Firmware image too large for your platform! $$FWSIZE > $(FWMAXSIZE)"; \
|
echo "ERROR: Firmware image too large for your platform! $$FWSIZE > $(FWMAXSIZE)"; \
|
||||||
|
|
Loading…
Reference in a new issue