Browse Source

add 'objs-size' target into tmk_core/avr.mk (#5490)

pull/6341/head 0.6.420
Takeshi ISHII 4 years ago
committed by skullydazed
parent
commit
0f95c0865c
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      build_keyboard.mk
  2. +3
    -0
      tmk_core/rules.mk

+ 1
- 0
build_keyboard.mk View 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

+ 3
- 0
tmk_core/rules.mk View 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


Loading…
Cancel
Save