2023-12-17 15:32:53 +00:00
|
|
|
from cutekit import cli, model, shell
|
|
|
|
from pathlib import Path
|
2023-12-10 18:24:05 +00:00
|
|
|
|
|
|
|
from . import build
|
|
|
|
from . import image
|
|
|
|
from . import qemu
|
|
|
|
|
2023-12-15 21:31:52 +00:00
|
|
|
@cli.command("n", "navy", "Navy related commands")
|
2023-12-10 18:24:05 +00:00
|
|
|
def _(args: cli.Args):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2023-12-15 21:31:52 +00:00
|
|
|
@cli.command("b", "navy/boot", "Boot Navy")
|
2023-12-10 18:24:05 +00:00
|
|
|
def _(args: cli.Args):
|
|
|
|
qemu.Qemu(
|
|
|
|
image.Image(
|
2023-12-17 15:32:53 +00:00
|
|
|
build.Builder(args),
|
|
|
|
),
|
|
|
|
no_display=args.consumeOpt("no-display"),
|
|
|
|
soft_dbg=args.consumeOpt("soft-dbg")
|
2023-12-10 18:24:05 +00:00
|
|
|
).run()
|
|
|
|
|
|
|
|
|
2023-12-15 21:31:52 +00:00
|
|
|
@cli.command("B", "navy/build", "Build Navy")
|
2023-12-10 18:24:05 +00:00
|
|
|
def _(args: cli.Args):
|
2023-12-17 15:32:53 +00:00
|
|
|
build.Builder(args).build_core()
|
|
|
|
build.Builder(args).build_modules()
|