-
Notifications
You must be signed in to change notification settings - Fork 31
/
CMakeLists.txt
51 lines (43 loc) · 1.6 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
#
# Copyright 2019, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
#
cmake_minimum_required(VERSION 3.7.2)
include(settings.cmake)
project(sel4bench C CXX ASM)
find_package(seL4 REQUIRED)
find_package(elfloader-tool REQUIRED)
# Configuration that applies to all apps
if(NOT Sel4benchAllowSettingsOverride)
if(KernelArchARM)
if(KernelPlatformOMAP3 OR KernelPlatformAM335X)
set(KernelDangerousCodeInjection ON CACHE BOOL "" FORCE)
else()
set(KernelArmExportPMUUser ON CACHE BOOL "" FORCE)
endif()
else()
set(KernelArmExportPMUUser OFF CACHE BOOL "" FORCE)
endif()
if(KernelArchX86)
set(KernelExportPMCUser ON CACHE BOOL "" FORCE)
set(KernelX86DangerousMSR ON CACHE BOOL "" FORCE)
set(AllowUnstableOverhead ON CACHE BOOL "" FORCE)
set(KernelX86MicroArch "haswell" CACHE STRING "" FORCE)
set(KernelXSaveFeatureSet 7 CACHE STRING "" FORCE)
set(KernelXSaveSize 832 CACHE STRING "" FORCE)
endif()
set(KernelRootCNodeSizeBits 13 CACHE STRING "" FORCE)
set(KernelTimeSlice 500 CACHE STRING "" FORCE)
set(KernelTimerTickMS 1000 CACHE STRING "" FORCE)
set(KernelVerificationBuild OFF CACHE BOOL "" FORCE)
endif()
sel4_import_kernel()
if((NOT Sel4benchAllowSettingsOverride) AND (KernelArchARM OR KernelArchRiscV))
# Elfloader settings that correspond to how Data61 sets its boards up.
ApplyData61ElfLoaderSettings(${KernelPlatform} ${KernelSel4Arch})
endif()
elfloader_import_project()
add_subdirectory(apps/sel4bench)
include(simulation)
GenerateSimulateScript()