summaryrefslogtreecommitdiff
path: root/builddefs/common_rules.mk
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-09-12 01:55:42 +0000
committerQMK Bot <hello@qmk.fm>2023-09-12 01:55:42 +0000
commitad4fc42e6be5da5c12e64b60f53839d951532a19 (patch)
tree89a5a6c5c619a50b006f7e4d5668ee162a9ffdfb /builddefs/common_rules.mk
parentd046f73b4970d611da8819fc60f5b80e36f1d692 (diff)
parent62105b5c07971387026e676815a8358c9833149e (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'builddefs/common_rules.mk')
-rw-r--r--builddefs/common_rules.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/builddefs/common_rules.mk b/builddefs/common_rules.mk
index 5d635307ed..d20e9ad74d 100644
--- a/builddefs/common_rules.mk
+++ b/builddefs/common_rules.mk
@@ -392,6 +392,8 @@ check-size:
if [ $(MAX_SIZE) -gt 0 ] && [ $(CURRENT_SIZE) -gt 0 ]; then \
$(SILENT) || printf "$(MSG_CHECK_FILESIZE)" | $(AWK_CMD); \
if [ $(CURRENT_SIZE) -gt $(MAX_SIZE) ]; then \
+ $(REMOVE) $(TARGET).$(FIRMWARE_FORMAT); \
+ $(REMOVE) $(BUILD_DIR)/$(TARGET).{hex,bin,uf2}; \
printf "\n * $(MSG_FILE_TOO_BIG)"; $(PRINT_ERROR_PLAIN); \
else \
if [ $(FREE_SIZE) -lt $(SIZE_MARGIN) ]; then \