Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 26, 2023
1 parent 786ef4d commit a13f3bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/images_packer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ optional arguments:
-h, --help show this help message and exit
--image <ECU_NAME>:<IMAGE_PATH>[:<IMAGE_VERSION>]
OTA image for <ECU_ID> as tar archive(compressed or uncompressed), this option can be used multiple times to include multiple images.
NOTE: if multiple OTA target image is specified for the same ECU, the later one will override the previous set one.
NOTE: multiple OTA target image specified for the same ECU is unexpected behavior.
-o <OUTPUT_FILE_PATH>, --output <OUTPUT_FILE_PATH>
save the generated image bundle tar archive to <OUTPUT_FILE_PATH>.
```
5 changes: 2 additions & 3 deletions tools/images_packer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main_build_offline_ota_image_bundle(args: argparse.Namespace):
logger.error(
(
f"ERR: OTA target image for ECU@{_ecu_id} is already set to"
f"from {image_files[_ecu_id]}, please check the params"
f"{image_files[_ecu_id]}, please check the --image params"
)
)
sys.exit(errno.EINVAL)
Expand Down Expand Up @@ -243,8 +243,7 @@ def command_build_offline_ota_image_bundle(
help=(
"OTA image for <ECU_ID> as tar archive(compressed or uncompressed), "
"this option can be used multiple times to include multiple images. \n"
"NOTE: if multiple OTA target image is specified for the same ECU, the later one "
"will override the previous set one."
"NOTE: multiple OTA target image specified for the same ECU is unexpected behavior"
),
required=True,
metavar="<ECU_NAME>:<IMAGE_PATH>[:<IMAGE_VERSION>]",
Expand Down

0 comments on commit a13f3bb

Please sign in to comment.