make: Use order-only prereq to check python dependencies

This commit is contained in:
Angus Gratton
2018-08-20 17:39:56 +10:00
committed by Roland Dobai
parent 1a79900970
commit 31ae3fe683
5 changed files with 14 additions and 29 deletions

View File

@@ -49,8 +49,7 @@ $(BLANK_OTA_DATA_FILE): partition_table_get_info
blank_ota_data: $(BLANK_OTA_DATA_FILE)
erase_ota: partition_table_get_info
$(CHECK_PYTHON_DEPENDENCIES_CMD)
erase_ota: partition_table_get_info check_python_dependencies
@echo $(if $(OTA_DATA_OFFSET), "Erase ota_data [addr=$(OTA_DATA_OFFSET) size=$(OTA_DATA_SIZE)] ...", $(error "ERROR: Partition table does not have ota_data partition."))
$(ESPTOOLPY_SERIAL) erase_region $(OTA_DATA_OFFSET) $(OTA_DATA_SIZE)