build: add option to specify supported OS list for plugin

Type: improvement
Change-Id: I0d6f11d5ece19c5e0e00dfdadc9d4c09274ae8e1
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2024-03-15 19:03:41 +00:00
committed by Mohammed HAWARI
parent 99c317a606
commit 8799bf6ca6
5 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -15,9 +15,13 @@ macro(add_vpp_plugin name)
cmake_parse_arguments(PLUGIN
""
"LINK_FLAGS;COMPONENT;DEV_COMPONENT"
"SOURCES;API_FILES;MULTIARCH_SOURCES;MULTIARCH_FORCE_ON;LINK_LIBRARIES;INSTALL_HEADERS;API_TEST_SOURCES;VAT_AUTO_TEST"
"SOURCES;API_FILES;MULTIARCH_SOURCES;MULTIARCH_FORCE_ON;LINK_LIBRARIES;INSTALL_HEADERS;API_TEST_SOURCES;VAT_AUTO_TEST;SUPPORTED_OS_LIST"
${ARGN}
)
if (PLUGIN_SUPPORTED_OS_LIST AND NOT ${CMAKE_SYSTEM_NAME} IN_LIST PLUGIN_SUPPORTED_OS_LIST)
message(WARNING "unsupported OS - ${name} plugin disabled")
return()
endif()
set(plugin_name ${name}_plugin)
set(api_includes)
if(NOT PLUGIN_COMPONENT)
+2
View File
@@ -33,4 +33,6 @@ add_vpp_plugin(af_packet
# API_TEST_SOURCES
#af_packet_test_api.c
SUPPORTED_OS_LIST Linux
)
+2
View File
@@ -70,4 +70,6 @@ add_vpp_plugin(af_xdp
${BPF_LIB}
${ELF_LIB}
${Z_LIB}
SUPPORTED_OS_LIST Linux
)
+2
View File
@@ -6,4 +6,6 @@ add_vpp_plugin(dma_intel
dsa.c
format.c
main.c
SUPPORTED_OS_LIST Linux
)
+2
View File
@@ -62,4 +62,6 @@ add_vpp_plugin(perfmon
COMPONENT
vpp-plugin-devtools
SUPPORTED_OS_LIST Linux
)