mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
openthread: support build esp32h2beta1 & esp32h2beta2 on master
This commit is contained in:
@@ -12,7 +12,18 @@ if(CONFIG_IEEE802154_ENABLED)
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${ieee802154_lib}>
|
||||
$<TARGET_FILE:${esp_phy_lib}> libphy.a libbtbb.a)
|
||||
else()
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}")
|
||||
if(IDF_TARGET STREQUAL "esp32h2")
|
||||
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1)
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE
|
||||
"-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/rev1")
|
||||
endif()
|
||||
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2)
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE
|
||||
"-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/rev2")
|
||||
endif()
|
||||
else()
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}")
|
||||
endif()
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${esp_phy_lib}> lib802154.a libphy.a libbtbb.a
|
||||
$<TARGET_FILE:${esp_phy_lib}>)
|
||||
endif()
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -35,6 +35,7 @@ typedef enum {
|
||||
ESP_IEEE802154_TX_ERR_COEXIST, /*!< Rejected by coexist system */
|
||||
ESP_IEEE802154_TX_ERR_COEXIST_REJ, /*!< Rejected by coexist system before transmitting frame */
|
||||
ESP_IEEE802154_TX_ERR_COEXIST_ACK, /*!< Rejected by coexist system when receiving ack */
|
||||
ESP_IEEE802154_TX_ERR_SECURITY, /*!< Invalid security configuration */
|
||||
} esp_ieee802154_tx_error_t;
|
||||
|
||||
/**
|
||||
|
Submodule components/ieee802154/lib updated: 421959af53...c40d87fbfb
@@ -174,8 +174,21 @@ if(CONFIG_OPENTHREAD_ENABLED)
|
||||
endif()
|
||||
|
||||
else()
|
||||
add_prebuilt_library(openthread_port "${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/libopenthread_port.a"
|
||||
REQUIRES openthread)
|
||||
if(IDF_TARGET STREQUAL "esp32h2")
|
||||
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1)
|
||||
add_prebuilt_library(openthread_port
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/rev1/libopenthread_port.a"
|
||||
REQUIRES openthread)
|
||||
endif()
|
||||
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2)
|
||||
add_prebuilt_library(openthread_port
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/rev2/libopenthread_port.a"
|
||||
REQUIRES openthread)
|
||||
endif()
|
||||
else()
|
||||
add_prebuilt_library(openthread_port "${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/libopenthread_port.a"
|
||||
REQUIRES openthread)
|
||||
endif()
|
||||
add_prebuilt_library(openthread_br "${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}/libopenthread_br.a"
|
||||
REQUIRES openthread)
|
||||
|
||||
|
Submodule components/openthread/lib updated: bb1ecdd49b...3ec1c7b743
Submodule components/openthread/openthread updated: 417b5645be...9a2d84a4b7
Reference in New Issue
Block a user