forked from jamestiotio/sparrow-cantrip-full
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-settings.cmake
43 lines (39 loc) · 1.89 KB
/
easy-settings.cmake
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
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NB: PLATFORM, CROSS_COMPILER_PREFIX, and RUST_TARGET are
# expected to be set on the cmake command line
if(NOT DEFINED PLATFORM)
message (SEND_ERROR "`PLATFORM` is not defined")
endif()
if(NOT DEFINED CROSS_COMPILER_PREFIX)
message (SEND_ERROR "`CROSS_COMPILER_PREFIX` is not defined")
endif()
if(NOT DEFINED RUST_TARGET)
message (SEND_ERROR "`RUST_TARGET` is not defined")
endif()
if(NOT DEFINED RUST_GLOBAL_FEATURES)
message (FATAL_ERROR "`RUST_GLOBAL_FEATURES` is not defined")
endif()
set(CAMKES_APP "system" CACHE STRING "The one and only CAmkES application in this project")
#set(CAPDL_LOADER_APP "capdl-loader-app" CACHE STRING "")
set(CAPDL_LOADER_APP "cantrip-os-rootserver" CACHE STRING "")
set(KernelIsMCS ON CACHE BOOL "Enable seL4 MCS support")
set(KernelPrinting ON CACHE BOOL "Enable seL4 console output support")
set(CAmkESDefaultHeapSize "0" CACHE STRING "CAmkES per-component heap size (bytes)")
set(CAmkESDefaultStackSize "4096" CACHE STRING "Stack size per thread (bytes)")
set(Sel4RuntimeStaticTLS "128" CACHE STRING "Size of static TLS area for new processes (bytes)")
set(LibUtilsDefaultZfLogLevel 5 CACHE STRING "seL4 internal logging level (0-5).")
set(SIMULATION OFF CACHE BOOL "Whether to build simulate script")
set(RELEASE OFF CACHE BOOL "Performance optimized build")
# NB: UseRiscVBBL is set in the platform config