mirror of
https://github.com/espressif/openthread.git
synced 2026-10-29 10:44:00 +00:00
[posix] fix name of vendor-supplied target to OT_POSIX_CONFIG_RCP_VENDOR_INTERFACE (#9297)
This commit fixes the name of the vendor supplied target to OT_POSIX_CONFIG_RCP_VENDOR_INTERFACE so that this target name and the misspelled target name do not both need to be defined by vendors.
This commit is contained in:
@@ -55,7 +55,7 @@ if(OT_POSIX_CONFIG_RCP_BUS STREQUAL "VENDOR")
|
||||
if (OT_POSIX_CONFIG_RCP_VENDOR_DEPS_PACKAGE)
|
||||
include(${OT_POSIX_CONFIG_RCP_VENDOR_DEPS_PACKAGE})
|
||||
if (OT_POSIX_CONFIG_RCP_VENDOR_TARGET)
|
||||
target_link_libraries(rcp-vendor-intf PRIVATE ${OT_POSIX_RCP_VENDOR_TARGET})
|
||||
target_link_libraries(rcp-vendor-intf PRIVATE ${OT_POSIX_CONFIG_RCP_VENDOR_TARGET})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
# This file provides an example on how to implement a RCP vendor extension.
|
||||
|
||||
# Set name of the cmake target to link with rcp-vendor-intf
|
||||
set(OT_POSIX_RCP_VENDOR_TARGET "vendor-lib")
|
||||
set(OT_POSIX_CONFIG_RCP_VENDOR_TARGET "vendor-lib")
|
||||
|
||||
# Create library target using source file "vendor_source.cpp"
|
||||
add_library(${OT_POSIX_RCP_VENDOR_TARGET} vendor_source.cpp)
|
||||
add_library(${OT_POSIX_CONFIG_RCP_VENDOR_TARGET} vendor_source.cpp)
|
||||
|
||||
# Include header files located at "${VENDOR_INCLUDE_PATH}"
|
||||
target_include_directories(${OT_POSIX_RCP_VENDOR_TARGET}
|
||||
target_include_directories(${OT_POSIX_CONFIG_RCP_VENDOR_TARGET}
|
||||
PRIVATE
|
||||
${VENDOR_INCLUDE_PATH}
|
||||
)
|
||||
@@ -49,7 +49,7 @@ if (EXAMPLE_DEPS_ENABLE)
|
||||
find_package(ExampleRcpVendorDeps)
|
||||
|
||||
if(ExampleRcpVendorDeps_FOUND)
|
||||
target_link_libraries(${OT_POSIX_RCP_VENDOR_TARGET}
|
||||
target_link_libraries(${OT_POSIX_CONFIG_RCP_VENDOR_TARGET}
|
||||
PRIVATE
|
||||
${ExampleRcpVendorDeps::ExampleRcpVendorDeps}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user