From 44c26d9d41771c1af11e285064f0b5151b44efad Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sun, 20 Aug 2023 11:08:43 -0500 Subject: [PATCH] Ensure sdkconfig.h is built early, by making Makefile depend on it Here's why this helps fix the build error: If this file does not exist or is out of date, then it is generated and then the Makefile is re-read. I don't know why this worked before but stopped now; it must have to do with the rework of header generation in the MP build system. --- ports/espressif/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/espressif/Makefile b/ports/espressif/Makefile index e87805ba03..a335115f0f 100644 --- a/ports/espressif/Makefile +++ b/ports/espressif/Makefile @@ -353,6 +353,7 @@ endif # create the config headers .PHONY: do-sdkconfig do-sdkconfig: $(BUILD)/esp-idf/config/sdkconfig.h +Makefile: $(BUILD)/esp-idf/config/sdkconfig.h $(BUILD)/esp-idf/config/sdkconfig.h: boards/$(BOARD)/sdkconfig CMakeLists.txt | $(BUILD)/esp-idf IDF_PATH=$(IDF_PATH) cmake -S . -B $(BUILD)/esp-idf -DSDKCONFIG=$(BUILD)/esp-idf/sdkconfig -DSDKCONFIG_DEFAULTS="$(SDKCONFIGS)" -DCMAKE_TOOLCHAIN_FILE=$(IDF_PATH)/tools/cmake/toolchain-$(IDF_TARGET).cmake -DIDF_TARGET=$(IDF_TARGET) -GNinja -DCIRCUITPY_ESPCAMERA=$(CIRCUITPY_ESPCAMERA)