Skip to content

Commit

Permalink
Move and rename firmware.bin (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-lalia authored Aug 22, 2024
1 parent 0c35e66 commit 9f15fe1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/compile_firmwares.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
CWD = os.getcwd()
OG_DIRECTORY = CWD


if SOURCE_PATH is None:
SOURCE_PATH = os.path.join(CWD, 'MicroPython', 'ports', 'esp32')
if DEVICE_PATH is None:
Expand Down Expand Up @@ -61,9 +62,17 @@ def main():
subprocess.call(["tools/build_device_bin.sh", device.name])
os.chdir(OG_DIRECTORY)

os.rename(
os.path.join(SOURCE_PATH, f'build-{device.name}', 'firmware.bin'),
os.path.join(OG_DIRECTORY, 'MicroHydra', f'{device.name}.bin'),
)


print(f"{bcolors.OKGREEN}Finished making compiled bins.{bcolors.ENDC}")
os.chdir(OG_DIRECTORY)






Expand Down

0 comments on commit 9f15fe1

Please sign in to comment.