Skip to content

Commit 1318595

Browse files
committed
build: refine the cmake and idf_component files
1 parent 2fe4e26 commit 1318595

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

components/esp_ot_cli_extension/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@ if(CONFIG_OPENTHREAD_RCP_COMMAND)
2828
endif()
2929

3030
set(include "include")
31-
if(CONFIG_OPENTHREAD_CLI_WIFI)
32-
list(APPEND include $ENV{IDF_PATH}/examples/common_components/protocol_examples_common/include)
33-
endif()
31+
3432
idf_component_register(SRCS "${srcs}"
3533
INCLUDE_DIRS "${include}"
3634
PRIV_REQUIRES lwip openthread iperf esp_netif esp_wifi http_parser esp_http_client esp_coex heap mbedtls nvs_flash esp_eth)
3735

38-
if (CONFIG_OPENTHREAD_CLI_OTA)
39-
idf_component_optional_requires(PUBLIC esp_br_http_ota)
36+
if(CONFIG_OPENTHREAD_CLI_OTA)
37+
idf_component_optional_requires(PRIVATE esp_br_http_ota)
4038
endif()
4139

42-
if (CONFIG_OPENTHREAD_RCP_COMMAND)
40+
if(CONFIG_OPENTHREAD_RCP_COMMAND)
4341
idf_component_optional_requires(PRIVATE esp_rcp_update)
4442
endif()
4543

components/esp_ot_cli_extension/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.2.4"
1+
version: "1.2.5"
22
description: Espressif OpenThread CLI Extension
33
url: https://github.com/espressif/esp-thread-br/tree/main/components/esp_ot_cli_extension
44
dependencies:

examples/basic_thread_border_router/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.5)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS
8-
${CMAKE_CURRENT_SOURCE_DIR}/../common
9-
${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_br_http_ota
10-
${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_ot_br_server
11-
)
12-
135
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
146
project(esp_ot_br)

examples/basic_thread_border_router/main/idf_component.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ dependencies:
77
espressif/esp_rcp_update:
88
version: "~1.3.0"
99
override_path: '../../../components/esp_rcp_update'
10+
11+
esp_br_http_ota:
12+
path: ../../../components/esp_br_http_ota
13+
esp_ot_br_server:
14+
path: ../../../components/esp_ot_br_server
15+
thread_border_router:
16+
path: ../../common/thread_border_router
17+
protocol_examples_common:
18+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common
19+
1020
## Required IDF version
1121
idf:
12-
version: ">=4.1.0"
13-
# # Put list of dependencies here
14-
protocol_examples_common:
15-
path: ${IDF_PATH}/examples/common_components/protocol_examples_common
22+
version: ">=5.1.0"

0 commit comments

Comments
 (0)