Skip to content

Commit 92669c2

Browse files
committed
conditionally generate the encrypted ota image
1 parent 4f70fde commit 92669c2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/lighting-app/esp32/main/CMakeLists.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ target_compile_options(${COMPONENT_LIB} PUBLIC
8282
"-DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h>"
8383
)
8484

85-
create_esp_enc_img(${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.bin
86-
${project_dir}/esp_image_encryption_public_key.pem
87-
${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-encrypted.bin
88-
app)
85+
if (CONFIG_ENABLE_ENCRYPTED_OTA)
86+
create_esp_enc_img(${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.bin
87+
${project_dir}/esp_image_encryption_public_key.pem
88+
${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-encrypted.bin
89+
app)
90+
endif()
8991

9092
if (CONFIG_ENABLE_PW_RPC)
9193

0 commit comments

Comments
 (0)