]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
add 'objs-size' target into tmk_core/avr.mk (#5490)
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 0e3c5ea2357694600eea8eeb1717bd53d5f913d3..b086420653f4e6dbaec7e6f32a1d528a92d7d7be 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 96b6e3a2714d8aea7ab3f8eb5f7d85a20f3a6717..0edf6adf513c871c456df339bdd13fde35a5f1fe 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