added tdeckboot

This commit is contained in:
Luxferre
2025-12-22 16:06:01 +02:00
parent c5fe8d741f
commit 122bc06e7f
3 changed files with 28 additions and 1 deletions
+9
View File
@@ -18,6 +18,15 @@ def lock_rootfs():
if MCU_STORAGE:
storage.remount("/", readonly=True)
# TODO: switch to buffered copying to avoid RAM overflow
def copy(p1, p2):
with open(p1, 'rb') as f1:
content = f1.read()
with open(p2, 'wb') as f2:
f2.write(content)
cp = copy # shortcut export
# Some shortcut export bindings to corresponding os functions
sep = pathsep = os.sep