Skip to content

Commit

Permalink
add 'objs-size' target into tmk_core/avr.mk (qmk#5490)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtei authored and skullydazed committed Jul 16, 2019
1 parent 3538955 commit 0f95c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_keyboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions tmk_core/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0f95c08

Please sign in to comment.