Merge branch 'feature/factory_test' into 'master'

factory-test: add factory test code and document

See merge request sdk/ESP8266_RTOS_SDK!890
This commit is contained in:
Dong Heng
2019-06-04 16:05:33 +08:00
18 changed files with 1230 additions and 6 deletions

View File

@ -82,7 +82,7 @@ CFLAGS += -D__ESP_FILE__='"null"'
CXXFLAGS += -D__ESP_FILE__='"null"'
endif
.PHONY: ota ota-clean
.PHONY: ota ota-clean app2 app2-flash app2-flash-all
RAW_BIN := ./build/$(PROJECT_NAME).bin
OTA_BIN := ./build/$(PROJECT_NAME).ota.bin
@ -97,6 +97,20 @@ __COMBILE_OTA_BIN := 1
endif
endif
app2: all
ifdef CONFIG_ESPTOOLPY_FLASHSIZE_1MB
@rm -f ./build/esp8266/esp8266_out.ld
@export CFLAGS= && export CXXFLAGS= && make APP_OFFSET=$(APP2_OFFSET) APP_SIZE=$(APP2_SIZE)
endif
@echo "To flash all build output, run 'make flash' or:"
@echo $(ESPTOOLPY_WRITE_FLASH) $(APP2_OFFSET) $(APP_BIN)
app2-flash: app2
@$(ESPTOOLPY_WRITE_FLASH) $(APP2_OFFSET) $(APP_BIN)
app2-flash-all: app2
@$(ESPTOOLPY_WRITE_FLASH) $(patsubst $(APP_OFFSET),$(APP2_OFFSET),$(ESPTOOL_ALL_FLASH_ARGS))
$(OTA1_BIN): all_binaries
@cp $(RAW_BIN) $(OTA1_BIN)
@echo [GEN] $(OTA1_BIN)