From e152a3cbf71c48395521f1a8b91a2ff8d55dace4 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 24 Feb 2024 20:27:12 +0100 Subject: [PATCH] "MKFSTOOL" (#20800) --- pio-tools/post_esp32.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pio-tools/post_esp32.py b/pio-tools/post_esp32.py index dbc1651ff..6cae0997c 100644 --- a/pio-tools/post_esp32.py +++ b/pio-tools/post_esp32.py @@ -160,8 +160,7 @@ def esp32_build_filesystem(fs_size): if not os.listdir(filesystem_dir): print("No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!") return False - env.Replace( MKSPIFFSTOOL=platform.get_package_dir("tool-mklittlefs") + '/mklittlefs' ) - tool = env.subst(env["MKSPIFFSTOOL"]) + tool = env.subst(env["MKFSTOOL"]) cmd = (tool,"-c",filesystem_dir,"-s",fs_size,join(env.subst("$BUILD_DIR"),"littlefs.bin")) returncode = subprocess.call(cmd, shell=False) # print(returncode)