mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 17:03:57 -04:00
Tools: don't publish elf files in build_binaries.py
these just confuse users of ChibiOS
This commit is contained in:
parent
6f138ddcfa
commit
6ab96fe8a9
@ -393,12 +393,13 @@ is bob we will attempt to checkout bob-AVR'''
|
|||||||
"bin",
|
"bin",
|
||||||
"".join([binaryname, framesuffix]))
|
"".join([binaryname, framesuffix]))
|
||||||
files_to_copy = []
|
files_to_copy = []
|
||||||
if os.path.exists(bare_path):
|
|
||||||
files_to_copy.append(bare_path)
|
|
||||||
for extension in [".px4", ".apj", ".abin"]:
|
for extension in [".px4", ".apj", ".abin"]:
|
||||||
filepath = "".join([bare_path, extension])
|
filepath = "".join([bare_path, extension])
|
||||||
if os.path.exists(filepath):
|
if os.path.exists(filepath):
|
||||||
files_to_copy.append(filepath)
|
files_to_copy.append(filepath)
|
||||||
|
# only copy the elf if we don't have other files to copy
|
||||||
|
if os.path.exists(bare_path) and len(files_to_copy) == 0:
|
||||||
|
files_to_copy.append(bare_path)
|
||||||
|
|
||||||
for path in files_to_copy:
|
for path in files_to_copy:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user