-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
35 lines (28 loc) · 849 Bytes
/
xmake.lua
File metadata and controls
35 lines (28 loc) · 849 Bytes
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
-- Copyright CHERIoT Contributors
-- SPDX-License-Identifier: CC0-1.0
set_project("Empty Project template")
sdkdir = path.absolute("third_party/cheriot_rtos/sdk")
set_toolchains("cheriot-clang")
includes(sdkdir)
includes(path.join(sdkdir, "lib"))
option("board")
set_default("sail")
compartment("entry_point")
add_deps("debug",
"freestanding",
"stdio")
add_files("src/main.cc")
firmware("empty-project")
add_deps("entry_point")
on_load(function(target)
target:values_set("board", "$(board)")
target:values_set("threads", {
{
compartment = "entry_point",
priority = 1,
entry_point = "init",
stack_size = 0x1000,
trusted_stack_frames = 2
}
}, {expand = false})
end)