Skip to content

Commit

Permalink
scripts: add jade v2 directories to ota/fw-update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDriver committed Oct 4, 2024
1 parent b667fd2 commit 4e0a72c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jade_ota.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ def _log_progress(written, compressed_size):
action='store',
dest='hwtarget',
help='Hardware target for downloading firmware. Defaults to jade',
choices=['jade', 'jadedev', 'jade1.1', 'jade1.1dev'],
choices=['jade', 'jadedev', 'jade1.1', 'jade1.1dev',
'jade2.0', 'jade2.0dev'],
default=None)
parser.add_argument('--release',
action='store',
Expand Down
4 changes: 3 additions & 1 deletion update_jade_fw.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def download_file(verinfo, release):
# Workout hw_target subdir
board_type = verinfo.get("BOARD_TYPE")
features = verinfo.get("JADE_FEATURES")
hw_target = {'JADE': 'jade', 'JADE_V1.1': 'jade1.1'}.get(board_type if board_type else 'JADE')
hw_target = {'JADE': 'jade',
'JADE_V1.1': 'jade1.1',
'JADE_V2': 'jade2.0'}.get(board_type if board_type else 'JADE')
build_type = {'SB': '', 'DEV': 'dev'}.get(features)
if hw_target is None or build_type is None:
logger.error(f'Unsupported hardware: {board_type} / {features}')
Expand Down

0 comments on commit 4e0a72c

Please sign in to comment.