forked from seL4/camkes-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (48 loc) · 1.2 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Copyright 2018, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
#
cmake_minimum_required(VERSION 3.8.2)
set(configure_string "")
config_option(
CAmkESVMGuestDMAIommu
CAMKES_VM_GUEST_DMA_IOMMU
"Enable DMA through the IOMMU"
DEFAULT
ON
)
# Create VMM configuration library
add_config_library(camkes_vmm "${configure_string}")
# Common VM build definitions
CAmkESAddImportPath(components)
CAmkESAddImportPath(interfaces)
CAmkESAddTemplatesPath(templates)
CAmkESAddTemplatesPath(components/Init/templates)
# Add VM Components and Libraries
add_subdirectory(components/Echo)
add_subdirectory(components/Firewall)
add_subdirectory(components/StringReverse)
add_subdirectory(components/UDPServer)
add_subdirectory(components/Sataserver)
# Declare connectors with templates.
# We can rely on the naming scheme being consistent to allow for easier declaration.
foreach(
connector
IN
ITEMS
seL4UDPSend
seL4UDPRecv
seL4PicoUDPSend
seL4PicoUDPRecv
seL4MultiSharedData
seL4Sataserver
)
DeclareCAmkESConnector(
${connector}
FROM
${connector}-from.template.c
TO
${connector}-to.template.c
)
endforeach()