blob: 752f61a058b03c526f3306e3d2a3e00aeebb6ee3 [file] [log] [blame]
-- Copyright Microsoft and CHERIoT Contributors.
-- SPDX-License-Identifier: MIT
set_project("CHERIoT Hello World")
sdkdir = "../../sdk"
includes(sdkdir)
set_toolchains("cheriot-clang")
option("board")
set_default("sail")
compartment("hello")
-- memcpy
add_deps("freestanding", "debug")
add_files("hello.cc")
-- Firmware image for the example.
firmware("hello_world")
add_deps("hello")
on_load(function(target)
target:values_set("board", "$(board)")
target:values_set("threads", {
{
compartment = "hello",
priority = 1,
entry_point = "say_hello",
stack_size = 0x200,
trusted_stack_frames = 1
}
}, {expand = false})
end)