[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:
Nick Bertoldi
2023-07-18 23:57:20 -07:00
committed by GitHub
parent d973b60658
commit 57d9541675
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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}
)