Skip to content

Commit 44c26d9

Browse files
committed
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.
1 parent d5d566d commit 44c26d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/espressif/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ endif
353353
# create the config headers
354354
.PHONY: do-sdkconfig
355355
do-sdkconfig: $(BUILD)/esp-idf/config/sdkconfig.h
356+
Makefile: $(BUILD)/esp-idf/config/sdkconfig.h
356357
$(BUILD)/esp-idf/config/sdkconfig.h: boards/$(BOARD)/sdkconfig CMakeLists.txt | $(BUILD)/esp-idf
357358
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)
358359

0 commit comments

Comments
 (0)