add 'objs-size' target into tmk_core/avr.mk (#5490)

This commit is contained in:
Takeshi ISHII 2019-07-16 14:45:31 +09:00 committed by skullydazed
parent 3538955778
commit 0f95c0865c
2 changed files with 4 additions and 0 deletions

View File

@ -398,6 +398,7 @@ $(KEYBOARD_OUTPUT)_CONFIG := $(PROJECT_CONFIG)
all: build check-size
build: elf cpfirmware
check-size: build
objs-size: build
include show_options.mk
include $(TMK_PATH)/rules.mk

View File

@ -390,6 +390,9 @@ show_path:
@echo SRC=$(SRC)
@echo OBJ=$(OBJ)
objs-size:
for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE)
ifeq ($(findstring avr-gcc,$(CC)),avr-gcc)
SIZE_MARGIN = 1024