diff options
author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2019-07-16 14:45:31 +0900 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-07-15 22:45:31 -0700 |
commit | 0f95c0865cec9cefde37dcb1bca32360a6741f0d (patch) | |
tree | eba1e273bdb908bd59e98179b957ce8d78733742 | |
parent | 3538955778c253e68779605cc67c27e15d195729 (diff) | |
download | qmk_firmware-0f95c0865cec9cefde37dcb1bca32360a6741f0d.tar.gz qmk_firmware-0f95c0865cec9cefde37dcb1bca32360a6741f0d.zip |
add 'objs-size' target into tmk_core/avr.mk (#5490)
-rw-r--r-- | build_keyboard.mk | 1 | ||||
-rw-r--r-- | tmk_core/rules.mk | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index 0e3c5ea23..b08642065 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
@@ -398,6 +398,7 @@ $(KEYBOARD_OUTPUT)_CONFIG := $(PROJECT_CONFIG) | |||
398 | all: build check-size | 398 | all: build check-size |
399 | build: elf cpfirmware | 399 | build: elf cpfirmware |
400 | check-size: build | 400 | check-size: build |
401 | objs-size: build | ||
401 | 402 | ||
402 | include show_options.mk | 403 | include show_options.mk |
403 | include $(TMK_PATH)/rules.mk | 404 | include $(TMK_PATH)/rules.mk |
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index 96b6e3a27..0edf6adf5 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk | |||
@@ -390,6 +390,9 @@ show_path: | |||
390 | @echo SRC=$(SRC) | 390 | @echo SRC=$(SRC) |
391 | @echo OBJ=$(OBJ) | 391 | @echo OBJ=$(OBJ) |
392 | 392 | ||
393 | objs-size: | ||
394 | for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE) | ||
395 | |||
393 | ifeq ($(findstring avr-gcc,$(CC)),avr-gcc) | 396 | ifeq ($(findstring avr-gcc,$(CC)),avr-gcc) |
394 | SIZE_MARGIN = 1024 | 397 | SIZE_MARGIN = 1024 |
395 | 398 | ||