diff options
author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2019-03-28 00:51:56 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-03-27 08:51:56 -0700 |
commit | b9f6ff05d09084d624b5736b46b8c8a446fa1892 (patch) | |
tree | 3ffcbe9d5e421bc0a475c626733deea58192d3eb /message.mk | |
parent | 6f124b790938e2e74431fc85f2cc1ae04d824f6e (diff) | |
download | qmk_firmware-b9f6ff05d09084d624b5736b46b8c8a446fa1892.tar.gz |
build size-check enhancement (#5485)
* build size-check enhancement
Changed to display a warning when the free size of compilation result is less than 512 bytes.
* update message.mk
* add SIZE_MARGIN variable, change default margin 512 to 1024
for Example.
```
$ make SIZE_MARGIN=2048 crkbd:all
$ make crkbd:all ## mergin is 1024
```
* Update message.mk
change message to ‘approaching the maximum’
Co-Authored-By: mtei <2170248+mtei@users.noreply.github.com>
Diffstat (limited to 'message.mk')
-rw-r--r-- | message.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/message.mk b/message.mk index 6894dd8cb..71f37be0b 100644 --- a/message.mk +++ b/message.mk @@ -80,3 +80,4 @@ MSG_CHECK_FILESIZE = Checking file size of $(TARGET).hex MSG_FILE_TOO_BIG = $(ERROR_COLOR)The firmware is too large!$(NO_COLOR) $(CURRENT_SIZE)/$(MAX_SIZE) ($(OVER_SIZE) bytes over)\n MSG_FILE_TOO_SMALL = The firmware is too small! $(CURRENT_SIZE)/$(MAX_SIZE)\n MSG_FILE_JUST_RIGHT = The firmware size is fine - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n +MSG_FILE_NEAR_LIMIT = The firmware size is approaching the maximum - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n |