Skip to content

Commit

Permalink
chore: Add missing build system bits
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick committed Jul 20, 2022
1 parent 4c6cad7 commit 3f5e43a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions fw.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
["Jumper T-Pro", "tpro-"],
["RadioMaster T8", "t8-"],
["RadioMaster TX12", "tx12-"],
["RadioMaster TX12MK2", "tx12mk2-"],
["RadioMaster TX16S", "tx16s-"],
["RadioMaster Zorro","zorro-"]
],
Expand Down
13 changes: 13 additions & 0 deletions radio/util/fwoptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,19 @@
"afhds3": ("AFHDS3", "YES", "NO")
}

options_radiomaster_tx12mk2 = {
"noheli": ("HELI", "NO", "YES"),
"ppmus": ("PPM_UNIT", "US", "PERCENT_PREC1"),
"lua": ("LUA", "YES", "NO_MODEL_SCRIPTS"),
"nogvars": ("GVARS", "NO", "YES"),
"faimode": ("FAI", "YES", None),
"faichoice": ("FAI", "CHOICE", None),
"nooverridech": ("OVERRIDE_CHANNEL_FUNCTION", "NO", "YES"),
"flexr9m": ("MODULE_PROTOCOL_FLEX", "YES", None),
"afhds3": ("AFHDS3", "YES", "NO"),
"internalelrs": ("INTERNAL_MODULE_ELRS", "YES", "NO"),
}

options_radiomaster_zorro = {
"noheli": ("HELI", "NO", "YES"),
"ppmus": ("PPM_UNIT", "US", "PERCENT_PREC1"),
Expand Down
3 changes: 3 additions & 0 deletions tools/build-gh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ do
tx12)
BUILD_OPTIONS+="-DPCB=X7 -DPCBREV=TX12"
;;
tx12mk2)
BUILD_OPTIONS+="-DPCB=X7 -DPCBREV=TX12MK2"
;;
t8)
BUILD_OPTIONS+="-DPCB=X7 -DPCBREV=T8"
;;
Expand Down
10 changes: 10 additions & 0 deletions tools/build-radiomaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
"PCBREV": "TX12",
"DEFAULT_MODE": "2",
},
"TX12MK2_1": {
"PCB": "X7",
"PCBREV": "TX12MK2",
"DEFAULT_MODE": "1",
},
"TX12MK2_2": {
"PCB": "X7",
"PCBREV": "TX12MK2",
"DEFAULT_MODE": "2",
},
"ZORRO_1": {
"PCB": "X7",
"PCBREV": "ZORRO",
Expand Down
3 changes: 3 additions & 0 deletions tools/generate-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ do
tx12)
BUILD_OPTIONS+="-DPCB=X7 -DPCBREV=TX12"
;;
tx12mk2)
BUILD_OPTIONS+="-DPCB=X7 -DPCBREV=TX12MK2"
;;
zorro)
BUILD_OPTIONS+="-DPCB=X7 -DPCBREV=ZORRO"
;;
Expand Down

0 comments on commit 3f5e43a

Please sign in to comment.