Skip to content

Commit 35622ca

Browse files
committed
Updated .gitignore
1 parent 034047e commit 35622ca

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ __pycache__/
33
.vscode/
44
build/
55

6+
# ESP32 build
7+
/partitions.bin
8+
/partitions.csv
9+
/sdkconfig.old
10+
/sdkconfig
611
/*/sdkconfig.old
712
/*/sdkconfig
8-
/*.exe
913
/*.fw
1014
/*.img
1115
/*.zip
1216

13-
/partitions.bin
14-
/partitions.csv
15-
17+
# SDL2 build
1618
/sd
1719
/stderr.txt
1820
/stdout.txt
1921
/gmon.out
22+
/*.exe

rg_tool.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def build_app(app, device_type, with_profiling=False, no_networking=False, is_re
134134
# To do: clean up if any of the flags changed since last build
135135
print("Building app '%s'" % app)
136136
args = [IDF_PY, "app"]
137+
args.append(f"-DRG_BUILD_APP={app}")
137138
args.append(f"-DRG_BUILD_VERSION={PROJECT_VER}")
138139
args.append(f"-DRG_BUILD_TARGET={re.sub(r'[^A-Z0-9]', '_', device_type.upper())}")
139140
args.append(f"-DRG_BUILD_RELEASE={1 if is_release else 0}")
@@ -145,7 +146,7 @@ def build_app(app, device_type, with_profiling=False, no_networking=False, is_re
145146

146147
def flash_app(app, port, baudrate=1152000):
147148
os.putenv("ESPTOOL_CHIP", os.getenv("IDF_TARGET", "auto"))
148-
os.putenv("ESPTOOL_BAUD", baudrate)
149+
os.putenv("ESPTOOL_BAUD", str(baudrate))
149150
os.putenv("ESPTOOL_PORT", port)
150151
if not os.path.exists("partitions.bin"):
151152
print("Reading device's partition table...")
@@ -158,7 +159,7 @@ def flash_app(app, port, baudrate=1152000):
158159

159160
def flash_image(image_file, port, baudrate=1152000):
160161
os.putenv("ESPTOOL_CHIP", os.getenv("IDF_TARGET", "auto"))
161-
os.putenv("ESPTOOL_BAUD", baudrate)
162+
os.putenv("ESPTOOL_BAUD", str(baudrate))
162163
os.putenv("ESPTOOL_PORT", port)
163164
print(f"Flashing image file '{image_file}' to {port}")
164165
run([ESPTOOL_PY, "write_flash", "--flash_size", "detect", "0x0", image_file])

0 commit comments

Comments
 (0)