Skip to content

Commit 327b336

Browse files
committed
feat(matter): adds necessary setup
1 parent 3de9c30 commit 327b336

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CMakeLists.txt

+22
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,25 @@ add_custom_command(
3333
VERBATIM
3434
)
3535
add_custom_target(mem-variant DEPENDS "mem_variant")
36+
37+
##################
38+
### ESP Matter ###
39+
##################
40+
41+
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-DCHIP_HAVE_CONFIG_H" APPEND)
42+
43+
# WARNING: This is just an example for using key for decrypting the encrypted OTA image
44+
# Please do not use it as is.
45+
#if(CONFIG_ENABLE_ENCRYPTED_OTA)
46+
# target_add_binary_data(light.elf "esp_image_encryption_key.pem" TEXT)
47+
#endif()
48+
49+
#if(CONFIG_IDF_TARGET_ESP32C2)
50+
# include(relinker)
51+
#endif()
52+
53+
#idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
54+
#idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
55+
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
56+
# flags that depend on -Wformat
57+
#idf_build_set_property(COMPILE_OPTIONS "-Wno-format-nonliteral;-Wno-format-security" APPEND)

0 commit comments

Comments
 (0)