Skip to content

Commit

Permalink
Installing genio-tools in pyproject.toml instead of deploy.py
Browse files Browse the repository at this point in the history
Signed-off-by: Aristo Chen <[email protected]>
  • Loading branch information
AristoChen committed Jan 16, 2025
1 parent cf205d3 commit 19da8a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ dependencies = [
"pyserial",
"schedule",
"wrapt_timeout_decorator",
"whl",
"paramiko",
"genio-tools",
]

dynamic = ["version"]
Expand Down
18 changes: 7 additions & 11 deletions sanity/agent/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ def deploy(
files = "seed"
match method:
case "genio_flash":
# Assuming the host is >= 22.04
gitlab_url = (
"git+https://gitlab.com/mediatek/aiot/bsp/"
+ "genio-tools.git#egg=genio-tools"
)
syscmd(f"set -x; pip3 install -U -e {gitlab_url}")
syscmd("set -x; export PATH=$PATH:/home/$USER/.local/bin/")
syscmd("set -x; genio-config")
image_tarball = [
f
Expand All @@ -211,10 +204,13 @@ def deploy(
"set -x; tar --strip-components=1 -xf "
f"{boot_assets_tarball} -C {image_dir}"
)
syscmd(
f"set -x; cd {image_dir};"
f"genio-flash '{extra_provision_tool_args}'"
)
if extra_provision_tool_args is not None:
syscmd(
f"set -x; cd {image_dir};"
f"genio-flash {extra_provision_tool_args}"
)
else:
syscmd(f"set -x; cd {image_dir}; genio-flash")

case "utp_com":
# This method is currently used for i.MX6 devices that does not
Expand Down

0 comments on commit 19da8a3

Please sign in to comment.