vnet: Only build tap on Linux 48/40348/2
authorTom Jones <thj@freebsd.org>
Tue, 30 Jan 2024 09:07:06 +0000 (09:07 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Sun, 18 Feb 2024 15:57:17 +0000 (15:57 +0000)
tap requires some porting on FreeBSD, while we wait for those changes
only build tap on Linux.

Type: improvement
Change-Id: I4361bf43764fdb046c2138d4a2ee5d7efa31bd5a
Signed-off-by: Tom Jones <thj@freebsd.org>
src/vnet/CMakeLists.txt

index 3225540..516a5fa 100644 (file)
@@ -995,6 +995,7 @@ list(APPEND VNET_API_FILES
 # tap interface (with virtio backend)
 ##############################################################################
 
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
 list(APPEND VNET_SOURCES
   devices/tap/cli.c
   devices/tap/tap.c
@@ -1008,6 +1009,7 @@ list(APPEND VNET_HEADERS
 list(APPEND VNET_API_FILES
   devices/tap/tapv2.api
 )
+endif()
 
 ##############################################################################
 # tap interface (with virtio backend)