add 'objs-size' target into tmk_core/avr.mk (#5490)
This commit is contained in:
parent
3538955778
commit
0f95c0865c
@ -398,6 +398,7 @@ $(KEYBOARD_OUTPUT)_CONFIG := $(PROJECT_CONFIG)
|
|||||||
all: build check-size
|
all: build check-size
|
||||||
build: elf cpfirmware
|
build: elf cpfirmware
|
||||||
check-size: build
|
check-size: build
|
||||||
|
objs-size: build
|
||||||
|
|
||||||
include show_options.mk
|
include show_options.mk
|
||||||
include $(TMK_PATH)/rules.mk
|
include $(TMK_PATH)/rules.mk
|
||||||
|
@ -390,6 +390,9 @@ show_path:
|
|||||||
@echo SRC=$(SRC)
|
@echo SRC=$(SRC)
|
||||||
@echo OBJ=$(OBJ)
|
@echo OBJ=$(OBJ)
|
||||||
|
|
||||||
|
objs-size:
|
||||||
|
for i in $(OBJ); do echo $$i; done | sort | xargs $(SIZE)
|
||||||
|
|
||||||
ifeq ($(findstring avr-gcc,$(CC)),avr-gcc)
|
ifeq ($(findstring avr-gcc,$(CC)),avr-gcc)
|
||||||
SIZE_MARGIN = 1024
|
SIZE_MARGIN = 1024
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user