Skip to content

Commit

Permalink
Makefile: display firmware size
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Nov 20, 2024
1 parent dd6d9ea commit d3e0209
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recovery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ all: $(BINS)
echo "ERROR: Firmware image too large for your platform! $$FWSIZE > $(FWMAXSIZE)"; \
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
exit 1; \
fi
fi; \
echo "==================================================================="; \
echo "Firmware size: $$FWSIZE bytes ($$((FWSIZE/1024))kb) = $$((FWSIZE*100/$(FWMAXSIZE)))% of $$(($(FWMAXSIZE)/1024))kb"; \
echo "==================================================================="

bootrom.bin: ../bootrom/obj/bootrom.elf
$(info [=] GEN $@)
Expand Down

0 comments on commit d3e0209

Please sign in to comment.