mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-09 10:13:29 +00:00
add 'objs-size' target into tmk_core/avr.mk (#5490)
This commit is contained in:
parent
3538955778
commit
0f95c0865c
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue