Skip to content

Commit 3d7995e

Browse files
author
Cruz Monrreal
authored
Merge pull request #9673 from cmonr/fix-py3-MDOT-build
Fix Py3.7 mdot target build
2 parents 36e65d2 + b59bb46 commit 3d7995e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/targets/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def binary_hook(t_self, resources, elf, binf):
427427
# Pad the fist part (internal flash) with 0xFF to 512k
428428
data = partf.read()
429429
outbin.write(data)
430-
outbin.write('\xFF' * (512*1024 - len(data)))
430+
outbin.write(b'\xFF' * (512*1024 - len(data)))
431431
partf.close()
432432
# Read and append the second part (external flash) in chunks of fixed
433433
# size
@@ -470,7 +470,7 @@ def _combine_bins_helper(target_name, binf):
470470
part = open(loader, 'rb')
471471
data = part.read()
472472
outbin.write(data)
473-
outbin.write('\xFF' * (64*1024 - len(data)))
473+
outbin.write(b'\xFF' * (64*1024 - len(data)))
474474
part.close()
475475
part = open(binf, 'rb')
476476
data = part.read()

tools/toolchains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def parse_output(self, output):
573573

574574
def compile_output(self, output=[]):
575575
_rc = output[0]
576-
_stderr = output[1].decode("utf-8")
576+
_stderr = output[1]
577577
command = output[2]
578578

579579
# Parse output for Warnings and Errors

0 commit comments

Comments
 (0)