mbv: add async app, sorta works

This commit is contained in:
2025-06-24 23:04:13 -07:00
parent afba9e168f
commit 849cf7b7a1
16 changed files with 1073 additions and 2 deletions

13
mbv/configure vendored
View File

@@ -283,9 +283,11 @@ bootloader_image = build_image(
linker_script="bootloader/bootloader.ld",
)
def app_image(app):
def app_image(app, sources=None):
if sources is None:
sources = glob.glob(f"./apps/{app}/**/*.cc", recursive=True)
return build_image(
source_set(app, glob.glob(f"./apps/{app}/**/*.cc", recursive=True)),
source_set(app, sources),
linker_script="apps/app.ld",
dependencies=[hal],
elf_out=f"{app}.elf",
@@ -299,6 +301,13 @@ all = [
app_image("helloworld"),
app_image("timer"),
app_image("uart"),
app_image("async", sources=[
"apps/async/async.cc",
"apps/async/lock.cc",
"apps/async/main.cc",
"apps/async/trace.cc",
"apps/async/uart.cc",
]),
]