generated from 3bian/3bian-sonata-empty-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
34 lines (28 loc) · 918 Bytes
/
xmake.lua
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
-- Copyright 3bian Limited, lowRISC and CHERIoT Contributors.
-- SPDX-License-Identifier: Apache-2.0
set_project("RTCC Example")
sdkdir = "third_party/cheriot_rtos/sdk"
set_toolchains("cheriot-clang")
includes("third_party/cheriot_rtos/sdk",
"third_party/cheriot_rtos/sdk/lib")
option("board")
set_default("sonata")
compartment("rtcc_example")
add_deps("debug",
"freestanding")
add_files("src/*.cc")
add_includedirs("lib/3bian_sonata_i2c/include")
firmware("rtcc-example")
add_deps("rtcc_example")
on_load(function(target)
target:values_set("board", "$(board)")
target:values_set("threads", {
{
compartment = "rtcc_example",
priority = 1,
entry_point = "init",
stack_size = 0x400,
trusted_stack_frames = 1
}
}, {expand = false})
end)