From 57d954167501be24fc13c0a464815c4c723e5130 Mon Sep 17 00:00:00 2001 From: Nick Bertoldi <109968900+bertoldi-silabs@users.noreply.github.com> Date: Wed, 19 Jul 2023 02:57:20 -0400 Subject: [PATCH] [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. --- src/posix/platform/vendor.cmake | 2 +- src/posix/platform/vendor_extension_example.cmake | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/posix/platform/vendor.cmake b/src/posix/platform/vendor.cmake index 7c132728a..ad33f1192 100644 --- a/src/posix/platform/vendor.cmake +++ b/src/posix/platform/vendor.cmake @@ -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() diff --git a/src/posix/platform/vendor_extension_example.cmake b/src/posix/platform/vendor_extension_example.cmake index c16d8f7fa..340dd8e0e 100644 --- a/src/posix/platform/vendor_extension_example.cmake +++ b/src/posix/platform/vendor_extension_example.cmake @@ -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} )