Skip to content

Commit

Permalink
rg_tool: Allow specifying no .fw format if the target doesn't support…
Browse files Browse the repository at this point in the history
… any.
  • Loading branch information
ducalex committed Jan 12, 2025
1 parent efe65bf commit 5bbb4e5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/retro-go/targets/byteboi-rev1/env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os

os.environ["IDF_TARGET"] = "esp32"
#os.environ["FW_FORMAT"] = "odroid"
os.environ["FW_FORMAT"] = "none"
2 changes: 1 addition & 1 deletion components/retro-go/targets/esp32s3-devkit-c/env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os

os.environ["IDF_TARGET"] = "esp32s3"
os.environ["FW_FORMAT"] = "esplay"
os.environ["FW_FORMAT"] = "none"
2 changes: 1 addition & 1 deletion components/retro-go/targets/fri3d-2024/env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os

os.environ["IDF_TARGET"] = "esp32s3"
os.environ["FW_FORMAT"] = "esplay"
os.environ["FW_FORMAT"] = "none"
4 changes: 4 additions & 0 deletions components/retro-go/targets/qtpy-gamer/env.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os

os.environ["IDF_TARGET"] = "esp32"
os.environ["FW_FORMAT"] = "none"
2 changes: 1 addition & 1 deletion components/retro-go/targets/retro-ruler-V1/env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os

os.environ["IDF_TARGET"] = "esp32"
os.environ["FW_FORMAT"] = "odroid"
os.environ["FW_FORMAT"] = "none"
6 changes: 5 additions & 1 deletion rg_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,12 @@ def monitor_app(app, port, baudrate=115200):

if command in ["build-fw", "release"]:
print("=== Step: Packing ===\n")
fw_format = os.getenv("FW_FORMAT")
fw_file = ("%s_%s_%s.fw" % (PROJECT_NAME, PROJECT_VER, args.target)).lower()
build_firmware(fw_file, apps, os.getenv("FW_FORMAT"), args.fatsize)
if fw_format in ["odroid", "esplay"]:
build_firmware(fw_file, apps, os.getenv("FW_FORMAT"), args.fatsize)
else:
print("Device doesn't support fw format, try build-img!")

if command in ["build-img", "release", "install"]:
print("=== Step: Packing ===\n")
Expand Down

0 comments on commit 5bbb4e5

Please sign in to comment.