Browse Source

scripts: board_v1_to_v2: Update following move to boards_legacy

Migration script requires update now that boards to be migrated
seat under boards_legacy and move directly under boards/

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
pull/69687/head
Erwan Gouriou 1 year ago committed by Jamie McCrae
parent
commit
f3b173be18
  1. 4
      scripts/utils/board_v1_to_v2.py

4
scripts/utils/board_v1_to_v2.py

@ -43,11 +43,11 @@ ZEPHYR_BASE = Path(__file__).parents[2] @@ -43,11 +43,11 @@ ZEPHYR_BASE = Path(__file__).parents[2]
def board_v1_to_v2(board_root, board, new_board, group, vendor, soc, variants):
try:
board_path = next(board_root.glob(f"boards/*/{board}"))
board_path = next(board_root.glob(f"boards/boards_legacy/*/{board}"))
except StopIteration:
sys.exit(f"Board not found: {board}")
new_board_path = board_root / "boards" / "v2" / group / new_board
new_board_path = board_root / "boards" / group / new_board
if new_board_path.exists():
print("New board already exists, updating board with additional SoC")
if not soc:

Loading…
Cancel
Save