Skip to content

Commit

Permalink
[build] switch to littlefs from spiffs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed May 20, 2024
1 parent 781f231 commit 0db7675
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build_firmwarezip.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def makezip(source, target, env):
if not os.path.exists(env.subst("$BUILD_DIR/firmware.bin")):
print("FIRMWARE not available to pack in firmware zip")
zipit = False
if not os.path.exists(env.subst("$BUILD_DIR/spiffs.bin")):
print("SPIFFS not available to pack in firmware zip, run \"Build Filesystem Image\" first")
if not os.path.exists(env.subst("$BUILD_DIR/littlefs.bin")):
print("LittleFS not available to pack in firmware zip, run \"Build Filesystem Image\" first")
zipit = False

if zipit == True:
Expand Down Expand Up @@ -118,7 +118,7 @@ def makezip(source, target, env):
"offset": "0x10000"
},
{
"filename": "spiffs.bin",
"filename": "littlefs.bin",
"offset": "0x910000"
}
]
Expand All @@ -138,7 +138,7 @@ def makezip(source, target, env):
"offset": "0x10000"
},
{
"filename": "spiffs.bin",
"filename": "littlefs.bin",
"offset": "0x600000"
}
]
Expand All @@ -158,7 +158,7 @@ def makezip(source, target, env):
"offset": "0x10000"
},
{
"filename": "spiffs.bin",
"filename": "littlefs.bin",
"offset": "0x250000"
}
]
Expand All @@ -174,7 +174,7 @@ def makezip(source, target, env):
zip_object.write(env.subst("$BUILD_DIR/bootloader.bin"), "bootloader.bin")
zip_object.write(env.subst("$BUILD_DIR/partitions.bin"), "partitions.bin")
zip_object.write(env.subst("$BUILD_DIR/firmware.bin"), "firmware.bin")
zip_object.write(env.subst("$BUILD_DIR/spiffs.bin"), "spiffs.bin")
zip_object.write(env.subst("$BUILD_DIR/littlefs.bin"), "littlefs.bin")
zip_object.write("firmware/release.json", "release.json")
else:
print("Skipping making firmware ZIP due to error")
Expand Down

0 comments on commit 0db7675

Please sign in to comment.