Skip to content

Commit

Permalink
virtio: Rename VM virtio component to virtioarm
Browse files Browse the repository at this point in the history
This avoids conflicting with the new util_libs/virtio library.

Signed-off-by: Andy Bui <[email protected]>
  • Loading branch information
andybui01 authored and abrandnewusername committed Nov 29, 2022
1 parent 44410bd commit fbca670
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ add_subdirectory(components/Firewall)
add_subdirectory(components/StringReverse)
add_subdirectory(components/UDPServer)
add_subdirectory(components/Sataserver)
add_subdirectory(libs/libvirtio camkes-arm-vm/libs/libvirtio)

# Declare connectors with templates.
# We can rely on the naming scheme being consistent to allow for easier declaration.
Expand Down
2 changes: 1 addition & 1 deletion arm_vm_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function(DeclareCAmkESARMVM init_component)
)

if(VmVirtioNetArping OR VmVirtioNetVirtqueue OR VmVirtioConsole)
DeclareCAmkESComponent(${init_component} LIBS virtio vswitch)
DeclareCAmkESComponent(${init_component} LIBS virtioarm vswitch)
endif()

# Append the USB driver library if building for exynos
Expand Down
2 changes: 1 addition & 1 deletion components/VM_Arm/src/modules/virtio_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <sel4vmmplatsupport/arch/vpci.h>

#include <platsupport/serial.h>
#include <virtio/virtio_console.h>
#include <virtioarm/virtio_console.h>

static virtio_con_t *virtio_con = NULL;
extern void *serial_getchar_buf;
Expand Down
2 changes: 1 addition & 1 deletion components/VM_Arm/src/modules/virtio_net_arping.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <camkes/dataport.h>

#include <sel4vmmplatsupport/drivers/virtio_net.h>
#include <virtio/virtio_net.h>
#include <virtioarm/virtio_net.h>

#include <netinet/in.h>
#include <netinet/in_systm.h>
Expand Down
2 changes: 1 addition & 1 deletion components/VM_Arm/src/modules/virtio_net_virtqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <virtqueue.h>
#include <vswitch.h>
#include <camkes/virtqueue.h>
#include <virtio/virtio_net.h>
#include <virtioarm/virtio_net.h>

static virtio_net_t *virtio_net = NULL;
static vswitch_t virtio_vswitch;
Expand Down
6 changes: 3 additions & 3 deletions libs/libvirtio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ add_compile_options(-std=gnu99)

set(sources src/virtio_net.c src/virtio_console.c)

add_library(virtio STATIC EXCLUDE_FROM_ALL ${sources})
add_library(virtioarm STATIC EXCLUDE_FROM_ALL ${sources})

target_include_directories(virtio PUBLIC include plat_include/${KernelPlatform})
target_include_directories(virtioarm PUBLIC include plat_include/${KernelPlatform})

target_link_libraries(virtio muslc sel4 sel4camkes sel4vm sel4vmmplatsupport sel4_autoconf)
target_link_libraries(virtioarm muslc sel4 sel4camkes sel4vm sel4vmmplatsupport sel4_autoconf)
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions libs/libvirtio/src/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#include <sel4vmmplatsupport/device.h>
#include <sel4vmmplatsupport/arch/vpci.h>

#include <virtio/virtio.h>
#include <virtio/virtio_plat.h>
#include <virtio/virtio_console.h>
#include <virtioarm/virtio.h>
#include <virtioarm/virtio_plat.h>
#include <virtioarm/virtio_console.h>

typedef struct virtio_con_cookie {
virtio_con_t *virtio_con;
Expand Down
6 changes: 3 additions & 3 deletions libs/libvirtio/src/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
#include <sel4vmmplatsupport/device.h>
#include <sel4vmmplatsupport/arch/vpci.h>

#include <virtio/virtio.h>
#include <virtio/virtio_net.h>
#include <virtio/virtio_plat.h>
#include <virtioarm/virtio.h>
#include <virtioarm/virtio_net.h>
#include <virtioarm/virtio_plat.h>

typedef struct virtio_net_cookie {
virtio_net_t *virtio_net;
Expand Down

0 comments on commit fbca670

Please sign in to comment.