forked from espressif/esp-idf
fix(esptool_py): Fix NVS partition being incorrectly marked as encrypted
- The CMake function esptool_py_partition_needs_encryption() in the esptool_py component used to mark NVS partition as encrypted, instead it should have marked the NVS keys partition as encrypted.
This commit is contained in:
@@ -289,13 +289,13 @@ function(esptool_py_partition_needs_encryption retencrypted partition_name)
|
|||||||
# - DATA 0x01
|
# - DATA 0x01
|
||||||
# Subtypes:
|
# Subtypes:
|
||||||
# - ota 0x00
|
# - ota 0x00
|
||||||
# - nvs 0x02
|
# - nvs_keys 0x04
|
||||||
# If the partition is an app, an OTA or an NVS partition, then it should
|
# If the partition is an app, an OTA or an NVS keys partition, then it should
|
||||||
# be encrypted
|
# be encrypted
|
||||||
if(
|
if(
|
||||||
(${type} EQUAL 0) OR
|
(${type} EQUAL 0) OR
|
||||||
(${type} EQUAL 1 AND ${subtype} EQUAL 0) OR
|
(${type} EQUAL 1 AND ${subtype} EQUAL 0) OR
|
||||||
(${type} EQUAL 1 AND ${subtype} EQUAL 2)
|
(${type} EQUAL 1 AND ${subtype} EQUAL 4)
|
||||||
)
|
)
|
||||||
set(encrypted TRUE)
|
set(encrypted TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user