diff --git a/platforms/esp32/Makefile.build b/platforms/esp32/Makefile.build index 1d536347b..55e080042 100644 --- a/platforms/esp32/Makefile.build +++ b/platforms/esp32/Makefile.build @@ -33,7 +33,9 @@ ESP_IDF_EXTRA_COMPONENTS ?= # ESP_IDF_EXTRA_PARTITION="fs_ext,data,spiffs,,256K" # Partition will be placed after all other mOS partitions. ESP_IDF_EXTRA_PARTITION ?= +ESP_IDF_EXTRA_PARTITION_1 ?= ESP_IDF_EXTRA_PARTITION_2 ?= +ESP_IDF_EXTRA_PARTITION_3 ?= MGOS_UPDATE_BOOT_LOADER ?= false @@ -72,7 +74,9 @@ GEN_DIR ?= $(BUILD_DIR)/gen export APP_SLOT_SIZE ?= 0x180000 FS_IMG = $(FW_STAGING_DIR)/fs.img export ESP_IDF_EXTRA_PARTITION +export ESP_IDF_EXTRA_PARTITION_1 export ESP_IDF_EXTRA_PARTITION_2 +export ESP_IDF_EXTRA_PARTITION_3 export NVS_ADDR ?= 0x9000 export NVS_SIZE ?= 0x4000 export APP_OFFSET ?= 0x10000 diff --git a/platforms/esp32/src/partitions_mgos.csv b/platforms/esp32/src/partitions_mgos.csv index 3a2f1d9e2..55f481be2 100644 --- a/platforms/esp32/src/partitions_mgos.csv +++ b/platforms/esp32/src/partitions_mgos.csv @@ -16,4 +16,6 @@ fs_0, data, spiffs, , $MGOS_ROOT_FS_SIZE, $FS_PART_ENCR_F app_1, app, ota_1, , $APP_SLOT_SIZE, encrypted fs_1, data, spiffs, , $MGOS_ROOT_FS_SIZE, $FS_PART_ENCR_FLAG $ESP_IDF_EXTRA_PARTITION +$ESP_IDF_EXTRA_PARTITION_1 $ESP_IDF_EXTRA_PARTITION_2 +$ESP_IDF_EXTRA_PARTITION_3