commit ad4fc42e6be5da5c12e64b60f53839d951532a19
parent d046f73b4970d611da8819fc60f5b80e36f1d692
Author: QMK Bot <hello@qmk.fm>
Date: Tue, 12 Sep 2023 01:55:42 +0000
Merge remote-tracking branch 'origin/master' into develop
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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 \