Skip to content

Commit f503b37

Browse files
committed
espressif: allow setting FLASH_SDKCONFIG at board level
1 parent d83b8db commit f503b37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ports/espressif/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,13 @@ $(BUILD)/esp-idf:
330330
TARGET_SDKCONFIG = esp-idf-config/sdkconfig-$(IDF_TARGET).defaults
331331

332332
ifeq ($(CIRCUITPY_ESP_FLASH_SIZE), 2MB)
333-
FLASH_SDKCONFIG = esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE)-no-ota-no-uf2.defaults
333+
FLASH_SDKCONFIG ?= esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE)-no-ota-no-uf2.defaults
334334
else
335335
UF2_BOOTLOADER ?= $(CIRCUITPY_USB)
336336
ifeq ($(UF2_BOOTLOADER), 1)
337-
FLASH_SDKCONFIG = esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE).defaults
337+
FLASH_SDKCONFIG ?= esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE).defaults
338338
else
339-
FLASH_SDKCONFIG = esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE)-no-uf2.defaults
339+
FLASH_SDKCONFIG ?= esp-idf-config/sdkconfig-$(CIRCUITPY_ESP_FLASH_SIZE)-no-uf2.defaults
340340
endif
341341
endif
342342

0 commit comments

Comments
 (0)