Dockerfile fixes ported to 'next'

This commit is contained in:
Bertrand Songis
2016-03-30 23:14:17 +02:00
parent 3c1221452a
commit 1f54c61e41
2 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -139,6 +139,8 @@ elif what == "libsimulator":
ext = ".so"
target = "libopentx-" + options[optcount] + "-simulator.so"
filename = "libopentx"
else:
exit(INVALID_BOARD)
filename += "-" + options[optcount]
optcount += 1
@@ -207,7 +209,7 @@ if not os.path.isfile(path):
if what == "firmware":
# Check binary size
if board_family == BOARD_FAMILY_ARM:
size = os.stat(firmware).st_size
size = os.stat(target).st_size
else:
size = subprocess.check_output('avr-size -A %s | grep Total | cut -f2- -d " "' % target, shell=True)
size = int(size.strip())