summaryrefslogtreecommitdiffstats
path: root/tmk_core/rules.mk
diff options
context:
space:
mode:
authorTakeshi ISHII <2170248+mtei@users.noreply.github.com>2019-07-16 14:45:31 +0900
committerskullydazed <skullydazed@users.noreply.github.com>2019-07-15 22:45:31 -0700
commit0f95c0865cec9cefde37dcb1bca32360a6741f0d (patch)
treeeba1e273bdb908bd59e98179b957ce8d78733742 /tmk_core/rules.mk
parent3538955778c253e68779605cc67c27e15d195729 (diff)
add 'objs-size' target into tmk_core/avr.mk (#5490)
Diffstat (limited to 'tmk_core/rules.mk')
-rw-r--r--tmk_core/rules.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 96b6e3a271..0edf6adf51 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -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