add 'objs-size' target into tmk_core/avr.mk (#5490) 0.6.420
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>
Tue, 16 Jul 2019 05:45:31 +0000 (14:45 +0900)
committerskullydazed <skullydazed@users.noreply.github.com>
Tue, 16 Jul 2019 05:45:31 +0000 (22:45 -0700)
build_keyboard.mk
tmk_core/rules.mk

index 0e3c5ea..b086420 100644 (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
index 96b6e3a..0edf6ad 100644 (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