mirror of https://github.com/arendst/Tasmota.git
"MKFSTOOL" (#20800)
This commit is contained in:
parent
d130a637da
commit
e152a3cbf7
|
@ -160,8 +160,7 @@ def esp32_build_filesystem(fs_size):
|
||||||
if not os.listdir(filesystem_dir):
|
if not os.listdir(filesystem_dir):
|
||||||
print("No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!")
|
print("No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!")
|
||||||
return False
|
return False
|
||||||
env.Replace( MKSPIFFSTOOL=platform.get_package_dir("tool-mklittlefs") + '/mklittlefs' )
|
tool = env.subst(env["MKFSTOOL"])
|
||||||
tool = env.subst(env["MKSPIFFSTOOL"])
|
|
||||||
cmd = (tool,"-c",filesystem_dir,"-s",fs_size,join(env.subst("$BUILD_DIR"),"littlefs.bin"))
|
cmd = (tool,"-c",filesystem_dir,"-s",fs_size,join(env.subst("$BUILD_DIR"),"littlefs.bin"))
|
||||||
returncode = subprocess.call(cmd, shell=False)
|
returncode = subprocess.call(cmd, shell=False)
|
||||||
# print(returncode)
|
# print(returncode)
|
||||||
|
|
Loading…
Reference in New Issue