Skip to content

Commit 0f95c08

Browse files
mteiskullydazed
authored andcommitted
add 'objs-size' target into tmk_core/avr.mk (qmk#5490)
1 parent 3538955 commit 0f95c08

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build_keyboard.mk

+1
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ $(KEYBOARD_OUTPUT)_CONFIG := $(PROJECT_CONFIG)
398398
all: build check-size
399399
build: elf cpfirmware
400400
check-size: build
401+
objs-size: build
401402

402403
include show_options.mk
403404
include $(TMK_PATH)/rules.mk

tmk_core/rules.mk

+3
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ show_path:
390390
@echo SRC=$(SRC)
391391
@echo OBJ=$(OBJ)
392392

393+
objs-size:
394+
for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE)
395+
393396
ifeq ($(findstring avr-gcc,$(CC)),avr-gcc)
394397
SIZE_MARGIN = 1024
395398

0 commit comments

Comments
 (0)