Skip to content

Commit

Permalink
OTA Requestor: Use common codes for ESP OTA-Requestor app & move OTA …
Browse files Browse the repository at this point in the history
…implements to platform path (#13017)

* use common codes of ota-requestor cluster in ESP OTA-Requestor app

* move OTAImageProcessor and OTARequestorDriver Implement to /src/platform/

* Add OTA implements for darwin platform
  • Loading branch information
wqx6 authored and pull[bot] committed Mar 4, 2022
1 parent da53281 commit 2efa28b
Show file tree
Hide file tree
Showing 25 changed files with 411 additions and 950 deletions.
6 changes: 6 additions & 0 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ menu "CHIP Core"
help
The maximum number of simultaneously timers in the CHIP System Layer.

config ENABLE_OTA_REQUESTOR
bool "Enable OTA Requestor"
default n
help
Enable this option to enable OTA Requestor for example

endmenu # "System Options"

menu "Security Options"
Expand Down
9 changes: 0 additions & 9 deletions examples/all-clusters-app/esp32/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,3 @@ depends on ENABLE_PW_RPC
about available pin numbers for UART.

endmenu

menu "OTA Options"

config ENABLE_OTA_REQUESTOR
bool "Enable OTA Requestor"
default y
help
Enable this option to enable the OTA Requestor
endmenu
155 changes: 0 additions & 155 deletions examples/ota-requestor-app/esp32/main/BDXDownloader.cpp

This file was deleted.

6 changes: 2 additions & 4 deletions examples/ota-requestor-app/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
idf_component_register(PRIV_INCLUDE_DIRS
"${CMAKE_CURRENT_LIST_DIR}/include"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/ota-requestor-app/"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/ota-requestor-app/ota-requestor-common"
SRC_DIRS
"${CMAKE_CURRENT_LIST_DIR}"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/zzz_generated/ota-requestor-app/zap-generated"
Expand All @@ -44,9 +44,7 @@ idf_component_register(PRIV_INCLUDE_DIRS
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/general-commissioning-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/network-commissioning"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/operational-credentials-server"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/ota-requestor-app/ota-requestor-common"
EXCLUDE_SRCS
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/examples/ota-requestor-app/ota-requestor-common/BDXDownloader.cpp"
"${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/ota-requestor"
PRIV_REQUIRES chip QRCode bt console app_update)

set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 14)
Expand Down
Loading

0 comments on commit 2efa28b

Please sign in to comment.