mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
remove item unused by extension
This commit is contained in:
parent
eb34d121ac
commit
ceab531852
2 changed files with 0 additions and 28 deletions
|
|
@ -8,7 +8,6 @@ from commands.ports import cmd_ports
|
||||||
from commands.monitor import cmd_monitor
|
from commands.monitor import cmd_monitor
|
||||||
from commands.flash import cmd_flash
|
from commands.flash import cmd_flash
|
||||||
from commands.doctor import cmd_doctor
|
from commands.doctor import cmd_doctor
|
||||||
from commands.build import cmd_build
|
|
||||||
from commands.artifacts import cmd_artifacts
|
from commands.artifacts import cmd_artifacts
|
||||||
from commands.update_all import cmd_update_all
|
from commands.update_all import cmd_update_all
|
||||||
|
|
||||||
|
|
@ -55,13 +54,6 @@ def main():
|
||||||
m.add_argument("--dsrdtr", action="store_true", help="Enable DSR/DTR hardware flow control")
|
m.add_argument("--dsrdtr", action="store_true", help="Enable DSR/DTR hardware flow control")
|
||||||
m.set_defaults(func=cmd_monitor)
|
m.set_defaults(func=cmd_monitor)
|
||||||
|
|
||||||
# build (Xous via cargo xtask)
|
|
||||||
b = sub.add_parser("build", help="Build Xous image for Baochip via cargo xtask")
|
|
||||||
b.add_argument("--target", required=True, help="Bao target (e.g. dabao, baosec)")
|
|
||||||
b.add_argument("--release", action="store_true", help="Use release build")
|
|
||||||
b.add_argument("--extra-args", help="Extra args to pass to cargo xtask")
|
|
||||||
b.set_defaults(func=cmd_build)
|
|
||||||
|
|
||||||
# doctor
|
# doctor
|
||||||
d = sub.add_parser("doctor", help="Check Python environment and ports")
|
d = sub.add_parser("doctor", help="Check Python environment and ports")
|
||||||
d.set_defaults(func=cmd_doctor)
|
d.set_defaults(func=cmd_doctor)
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
import logging
|
|
||||||
from utils.common import project_root
|
|
||||||
|
|
||||||
def cmd_build(args) -> None:
|
|
||||||
target = args.target
|
|
||||||
cargo_cmd = ["cargo", "xtask", target]
|
|
||||||
if args.release:
|
|
||||||
cargo_cmd.append("--release")
|
|
||||||
if args.extra_args:
|
|
||||||
cargo_cmd += args.extra_args.split()
|
|
||||||
|
|
||||||
logging.info(f"[bao] Running: {' '.join(cargo_cmd)}")
|
|
||||||
proc = subprocess.run(cargo_cmd, cwd=project_root())
|
|
||||||
if proc.returncode == 0:
|
|
||||||
print(f"[bao] Build for target '{target}' complete.")
|
|
||||||
else:
|
|
||||||
logging.error(f"[bao] Build failed with exit code {proc.returncode}")
|
|
||||||
sys.exit(proc.returncode)
|
|
||||||
Loading…
Reference in a new issue