fastboot: support make_f2fs and sload_f2fs for win32

This patch enalbes to use windows tools for f2fs.

Change-Id: Id9109d3d1d8db85f433a20c6a9b18a88daa540d0
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
Jaegeuk Kim 2017-12-06 10:23:13 -08:00
parent 899ad558cd
commit aa64620eaa
1 changed files with 0 additions and 6 deletions

View File

@ -165,7 +165,6 @@ static int generate_ext4_image(const char* fileName, long long partSize,
static int generate_f2fs_image(const char* fileName, long long partSize, const std::string& initial_dir,
unsigned /* unused */, unsigned /* unused */)
{
#ifndef WIN32
const std::string exec_dir = android::base::GetExecutableDirectory();
const std::string mkf2fs_path = exec_dir + "/make_f2fs";
std::vector<const char*> mkf2fs_args = {mkf2fs_path.c_str()};
@ -195,11 +194,6 @@ static int generate_f2fs_image(const char* fileName, long long partSize, const s
"-f", initial_dir.c_str(), fileName, nullptr};
return exec_cmd(sload_args[0], sload_args.data(), nullptr);
#else
UNUSED(fileName, partSize, initial_dir);
fprintf(stderr, "generate_f2fs_image: Not supported on Windows\n");
return -1;
#endif
}
static const struct fs_generator {