]> granicus.if.org Git - esp-idf/commitdiff
Use check_python_dependencies everywhere as order-only-prerequisite
authorRoland Dobai <dobai.roland@gmail.com>
Mon, 3 Sep 2018 09:42:10 +0000 (11:42 +0200)
committerRoland Dobai <dobai.roland@gmail.com>
Mon, 3 Sep 2018 09:42:10 +0000 (11:42 +0200)
components/app_update/Makefile.projbuild
components/bootloader/Makefile.projbuild
components/esptool_py/Makefile.projbuild
components/partition_table/Makefile.projbuild
make/project.mk

index a21e047b8b98061f39d5f7753ed2e2f99dfede1f..f4cf1d055514689f1369e03482bf9e69162f2c44 100644 (file)
@@ -49,7 +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
+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)
 
index d8fa2a5ca446f0b42f16528a8d240a109ae0d223..ba8855c27472f6458261d5b4fa0b1d7e5c03b78e 100644 (file)
@@ -56,7 +56,7 @@ bootloader: $(BOOTLOADER_BIN) | check_python_dependencies
 
 ESPTOOL_ALL_FLASH_ARGS += $(BOOTLOADER_OFFSET) $(BOOTLOADER_BIN)
 
-bootloader-flash: $(BOOTLOADER_BIN) $(call prereq_if_explicit,erase_flash) check_python_dependencies
+bootloader-flash: $(BOOTLOADER_BIN) $(call prereq_if_explicit,erase_flash) check_python_dependencies
        $(ESPTOOLPY_WRITE_FLASH) 0x1000 $^
 
 else ifdef CONFIG_SECURE_BOOTLOADER_ONE_TIME_FLASH
index 5e082a2e9b8ee48f552b3cdfd656c97937c73835..c3ce445dddadcdb2fc5732d7b3491713a0fa00cd 100644 (file)
@@ -58,14 +58,14 @@ APP_BIN_UNSIGNED ?= $(APP_BIN)
 $(APP_BIN_UNSIGNED): $(APP_ELF) $(ESPTOOLPY_SRC) | check_python_dependencies
        $(ESPTOOLPY) elf2image $(ESPTOOL_FLASH_OPTIONS) $(ESPTOOL_ELF2IMAGE_OPTIONS) -o $@ $<
 
-flash: all_binaries $(ESPTOOLPY_SRC) $(call prereq_if_explicit,erase_flash) partition_table_get_info check_python_dependencies
+flash: all_binaries $(ESPTOOLPY_SRC) $(call prereq_if_explicit,erase_flash) partition_table_get_info check_python_dependencies
        @echo "Flashing binaries to serial port $(ESPPORT) (app at offset $(APP_OFFSET))..."
 ifdef CONFIG_SECURE_BOOT_ENABLED
        @echo "(Secure boot enabled, so bootloader not flashed automatically. See 'make bootloader' output)"
 endif
        $(ESPTOOLPY_WRITE_FLASH) $(ESPTOOL_ALL_FLASH_ARGS)
 
-app-flash: $(APP_BIN) $(ESPTOOLPY_SRC) $(call prereq_if_explicit,erase_flash) partition_table_get_info check_python_dependencies
+app-flash: $(APP_BIN) $(ESPTOOLPY_SRC) $(call prereq_if_explicit,erase_flash) partition_table_get_info check_python_dependencies
        @echo "Flashing app to serial port $(ESPPORT), offset $(APP_OFFSET)..."
        $(ESPTOOLPY_WRITE_FLASH) $(APP_OFFSET) $(APP_BIN)
 
@@ -73,7 +73,7 @@ app-flash: $(APP_BIN) $(ESPTOOLPY_SRC) $(call prereq_if_explicit,erase_flash) pa
 # at the project level as long as qualified path
 COMPONENT_SUBMODULES += $(COMPONENT_PATH)/esptool
 
-erase_flash: check_python_dependencies
+erase_flash: check_python_dependencies
        @echo "Erasing entire flash..."
        $(ESPTOOLPY_SERIAL) erase_flash
 
@@ -90,14 +90,14 @@ endif
 # note: if you want to run miniterm from command line, can simply run
 # miniterm.py on the console. The '$(PYTHON) -m serial.tools.miniterm'
 # is to allow for the $(PYTHON) variable overriding the python path.
-simple_monitor: check_python_dependencies $(call prereq_if_explicit,%flash)
+simple_monitor: $(call prereq_if_explicit,%flash) | check_python_dependencies
        $(MONITOR_PYTHON) -m serial.tools.miniterm --rts 0 --dtr 0 --raw $(ESPPORT) $(MONITORBAUD)
 
 PRINT_FILTER ?=
 
 MONITOR_OPTS := --baud $(MONITORBAUD) --port $(ESPPORT) --toolchain-prefix $(CONFIG_TOOLPREFIX) --make "$(MAKE)" --print_filter "$(PRINT_FILTER)"
 
-monitor: check_python_dependencies $(call prereq_if_explicit,%flash)
+monitor: $(call prereq_if_explicit,%flash) | check_python_dependencies
        $(summary) MONITOR
        [ -f $(APP_ELF) ] || echo "*** 'make monitor' target requires an app to be compiled and flashed first."
        [ -f $(APP_ELF) ] || echo "*** Run 'make flash monitor' to build, flash and monitor"
index 5d04636b1a77ab22a7fe7d79ad099fcd51e89fdb..db60ee7381a4283aeacc633914c350c64479bc78 100644 (file)
@@ -76,7 +76,7 @@ export OTA_DATA_SIZE
 PARTITION_TABLE_FLASH_CMD = $(ESPTOOLPY_SERIAL) write_flash $(PARTITION_TABLE_OFFSET) $(PARTITION_TABLE_BIN)
 ESPTOOL_ALL_FLASH_ARGS += $(PARTITION_TABLE_OFFSET) $(PARTITION_TABLE_BIN)
 
-partition_table: $(PARTITION_TABLE_BIN) partition_table_get_info check_python_dependencies
+partition_table: $(PARTITION_TABLE_BIN) partition_table_get_info check_python_dependencies
        @echo "Partition table binary generated. Contents:"
        @echo $(SEPARATOR)
        $(GEN_ESP32PART) $<
@@ -84,7 +84,7 @@ partition_table: $(PARTITION_TABLE_BIN) partition_table_get_info check_python_de
        @echo "Partition flashing command:"
        @echo "$(PARTITION_TABLE_FLASH_CMD)"
 
-partition_table-flash: $(PARTITION_TABLE_BIN) check_python_dependencies
+partition_table-flash: $(PARTITION_TABLE_BIN) check_python_dependencies
        @echo "Flashing partition table..."
        $(PARTITION_TABLE_FLASH_CMD)
 
index f3ceeba1a0ef539a0905c26858935385fee6debf..364f7297063b8d9234bf0a081b4ddf8d568a1717 100644 (file)
@@ -13,7 +13,7 @@
 .PHONY: build-components menuconfig defconfig all build clean all_binaries check-submodules size size-components size-files size-symbols list-components
 
 MAKECMDGOALS ?= all
-all: all_binaries check_python_dependencies
+all: all_binaries check_python_dependencies
 # see below for recipe of 'all' target
 #
 # # other components will add dependencies to 'all_binaries'. The
@@ -485,16 +485,16 @@ app-clean: $(addprefix component-,$(addsuffix -clean,$(notdir $(COMPONENT_PATHS)
        $(summary) RM $(APP_ELF)
        rm -f $(APP_ELF) $(APP_BIN) $(APP_MAP)
 
-size: check_python_dependencies $(APP_ELF)
+size: $(APP_ELF) | check_python_dependencies
        $(PYTHON) $(IDF_PATH)/tools/idf_size.py $(APP_MAP)
 
-size-files: check_python_dependencies $(APP_ELF)
+size-files: $(APP_ELF) | check_python_dependencies
        $(PYTHON) $(IDF_PATH)/tools/idf_size.py --files $(APP_MAP)
 
-size-components: check_python_dependencies $(APP_ELF)
+size-components: $(APP_ELF) | check_python_dependencies
        $(PYTHON) $(IDF_PATH)/tools/idf_size.py --archives $(APP_MAP)
 
-size-symbols: check_python_dependencies $(APP_ELF)
+size-symbols: $(APP_ELF) | check_python_dependencies
 ifndef COMPONENT
        $(error "ERROR: Please enter the component to look symbols for, e.g. COMPONENT=heap")
 else