Makefile: Add 'size' target
This commit is contained in:
parent
156143d850
commit
2449914df1
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,7 @@ CC = $(CROSS)gcc
|
||||||
LD = $(CROSS)gcc
|
LD = $(CROSS)gcc
|
||||||
NM = $(CROSS)nm
|
NM = $(CROSS)nm
|
||||||
CPP = $(CROSS)g++
|
CPP = $(CROSS)g++
|
||||||
|
SIZE = $(CROSS)size
|
||||||
OBJCOPY = $(CROSS)objcopy
|
OBJCOPY = $(CROSS)objcopy
|
||||||
|
|
||||||
# Source components to compile and link. Each of these are subdirectories
|
# Source components to compile and link. Each of these are subdirectories
|
||||||
|
@ -180,6 +181,9 @@ $(FW_FILE_1) $(FW_FILE_2): $(TARGET_OUT) $(FW_BASE)
|
||||||
flash: $(FW_FILE_1) $(FW_FILE_2)
|
flash: $(FW_FILE_1) $(FW_FILE_2)
|
||||||
$(ESPTOOL) -p $(ESPPORT) --baud $(ESPBAUD) write_flash $(FW_1) $(FW_FILE_1) $(FW_2) $(FW_FILE_2)
|
$(ESPTOOL) -p $(ESPPORT) --baud $(ESPBAUD) write_flash $(FW_1) $(FW_FILE_1) $(FW_2) $(FW_FILE_2)
|
||||||
|
|
||||||
|
size: $(TARGET_OUT)
|
||||||
|
$(Q) $(CROSS)size --format=sysv $(TARGET_OUT)
|
||||||
|
|
||||||
test: flash
|
test: flash
|
||||||
screen $(ESPPORT) 115200
|
screen $(ESPPORT) 115200
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue