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>
This commit is contained in:
committed by
Jamie McCrae
parent
05b50f6691
commit
f3b173be18
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user