forked from CHERIoT-Platform/cheriot-rtos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild2file
42 lines (34 loc) · 1023 Bytes
/
build2file
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
firmware{hello_world}: compartment{hello}
{
threads += (compartment@hello \
priority@1 \
entry_point@say_hello \
stack_size@0x200 \
trusted_stack_frames@1)
# Alternative way to specify the same as JSON text.
#
#\
threads += '{"compartment":"hello",
"priority":1,
"entry_point":"say_hello",
"stack_size":512,
"trusted_stack_frames":1}'
#\
}
compartment{hello}: cxx{hello} cheriot-rtos/lib/library{freestanding}
# Useful for debugging.
#
#info $serialize($(firmware{hello_world}: threads))
# Example of building multiple firmware versions from the same compartments.
#
#\
./: firmware{hello_world hello_world_large}
firmware{hello_world_large}: compartment{hello}
{
threads += (compartment@hello \
priority@2 \
entry_point@say_hello \
stack_size@0x400 \
trusted_stack_frames@2)
}
#\