mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
build system: Add dependencies to component clean steps
Build directory must exist, component_project_vars.mk must be generated if it is going to be.
This commit is contained in:
committed by
Angus Gratton
parent
2544355301
commit
c275ad4ca4
@@ -118,6 +118,6 @@ ifndef CONFIG_SECURE_BOOT_ENABLED
|
|||||||
all_binaries: $(BOOTLOADER_BIN)
|
all_binaries: $(BOOTLOADER_BIN)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bootloader-clean:
|
bootloader-clean: $(SDKCONFIG_MAKEFILE)
|
||||||
$(BOOTLOADER_MAKE) app-clean
|
$(BOOTLOADER_MAKE) app-clean
|
||||||
rm -f $(SECURE_BOOTLOADER_KEY) $(BOOTLOADER_DIGEST_BIN)
|
rm -f $(SECURE_BOOTLOADER_KEY) $(BOOTLOADER_DIGEST_BIN)
|
||||||
|
@@ -361,10 +361,10 @@ endef
|
|||||||
define GenerateComponentTargets
|
define GenerateComponentTargets
|
||||||
.PHONY: component-$(2)-build component-$(2)-clean
|
.PHONY: component-$(2)-build component-$(2)-clean
|
||||||
|
|
||||||
component-$(2)-build: check-submodules
|
component-$(2)-build: check-submodules $(call prereq_if_explicit, component-$(2)-clean) | $(BUILD_DIR_BASE)/$(2)
|
||||||
$(call ComponentMake,$(1),$(2)) build
|
$(call ComponentMake,$(1),$(2)) build
|
||||||
|
|
||||||
component-$(2)-clean:
|
component-$(2)-clean: | $(BUILD_DIR_BASE)/$(2) $(BUILD_DIR_BASE)/$(2)/component_project_vars.mk
|
||||||
$(call ComponentMake,$(1),$(2)) clean
|
$(call ComponentMake,$(1),$(2)) clean
|
||||||
|
|
||||||
$(BUILD_DIR_BASE)/$(2):
|
$(BUILD_DIR_BASE)/$(2):
|
||||||
@@ -406,7 +406,7 @@ size-components: $(APP_ELF)
|
|||||||
|
|
||||||
# NB: this ordering is deliberate (app-clean before config-clean),
|
# NB: this ordering is deliberate (app-clean before config-clean),
|
||||||
# so config remains valid during all component clean targets
|
# so config remains valid during all component clean targets
|
||||||
config-clean: app-clean
|
config-clean: app-clean $(call prereq_if_explicit,bootloader-clean)
|
||||||
clean: config-clean
|
clean: config-clean
|
||||||
|
|
||||||
# phony target to check if any git submodule listed in COMPONENT_SUBMODULES are missing
|
# phony target to check if any git submodule listed in COMPONENT_SUBMODULES are missing
|
||||||
|
Reference in New Issue
Block a user