mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Improve build files
This commit is contained in:
parent
a73d11f106
commit
860b50faae
3 changed files with 136 additions and 55 deletions
|
@ -7,60 +7,7 @@ from builtins import NotADirectoryError
|
|||
import shutil
|
||||
import tempfile
|
||||
|
||||
|
||||
boards = {
|
||||
"XLITE": {
|
||||
"PCB": "XLITE",
|
||||
},
|
||||
"XLITES": {
|
||||
"PCB": "XLITES",
|
||||
},
|
||||
"X9LITE": {
|
||||
"PCB": "X9LITE",
|
||||
},
|
||||
"X9LITES": {
|
||||
"PCB": "X9LITES",
|
||||
},
|
||||
"X9D": {
|
||||
"PCB": "X9D+",
|
||||
},
|
||||
"X9D+": {
|
||||
"PCB": "X9D+",
|
||||
},
|
||||
"X9D+2019": {
|
||||
"PCB": "X9D+",
|
||||
"PCBREV": "2019",
|
||||
},
|
||||
"X9E": {
|
||||
"PCB": "X9E",
|
||||
},
|
||||
"X7": {
|
||||
"PCB": "X7",
|
||||
},
|
||||
"X7ACCESS": {
|
||||
"PCB": "X7",
|
||||
"PCBREV": "ACCESS",
|
||||
},
|
||||
"X10": {
|
||||
"PCB": "X10",
|
||||
},
|
||||
"X10EXPRESS": {
|
||||
"PCB": "X10",
|
||||
"PCBREV": "EXPRESS",
|
||||
},
|
||||
"X12S": {
|
||||
"PCB": "X12S",
|
||||
},
|
||||
"T16": {
|
||||
"PCB": "X10",
|
||||
"PCBREV": "T16",
|
||||
"INTERNAL_MODULE_MULTI": "YES"
|
||||
},
|
||||
"T12": {
|
||||
"PCB": "X7",
|
||||
"PCBREV": "T12",
|
||||
},
|
||||
}
|
||||
from boards import *
|
||||
|
||||
translations = [
|
||||
"EN"
|
||||
|
@ -86,7 +33,7 @@ def build(board, translation, srcdir):
|
|||
index = 0
|
||||
while 1:
|
||||
suffix = "" if index == 0 else "_%d" % index
|
||||
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||
filename = "output/tbs_firm_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||
if not os.path.exists(filename):
|
||||
shutil.copy("%s/firmware.bin" % path, filename)
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue