Import("env") flash_size = env.BoardConfig().get("upload.flash_size", "4MB") fs_image_name = f"littlefs_{flash_size}" env.Replace(ESP32_FS_IMAGE_NAME=fs_image_name) env.Replace(ESP8266_FS_IMAGE_NAME=fs_image_name)