build_bootloaders.py should invoke bin2hex.py with the same Python interpreter as its own

This commit is contained in:
Tamas Nepusz 2022-04-01 13:43:30 +02:00 committed by Andrew Tridgell
parent 67520c55d5
commit 19bc7ebebe
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ for board in get_board_list():
failed_boards.add(board)
continue
shutil.copy('build/%s/bin/AP_Bootloader.bin' % board, 'Tools/bootloaders/%s_bl.bin' % board)
if not run_program(["Tools/scripts/bin2hex.py", "--offset", "0x08000000", 'Tools/bootloaders/%s_bl.bin' % board, 'Tools/bootloaders/%s_bl.hex' % board]):
if not run_program([sys.executable, "Tools/scripts/bin2hex.py", "--offset", "0x08000000", 'Tools/bootloaders/%s_bl.bin' % board, 'Tools/bootloaders/%s_bl.hex' % board]):
failed_boards.add(board)
continue
shutil.copy('build/%s/bootloader/AP_Bootloader' % board, 'Tools/bootloaders/%s_bl.elf' % board)