Lines Matching refs:target_filename
47 const char* target_filename,
633 const char* target_filename, in applypatch() argument
642 if (target_filename[0] == '-' && target_filename[1] == '\0') { in applypatch()
643 target_filename = source_filename; in applypatch()
658 if (LoadFileContents(target_filename, &source_file) == 0) { in applypatch()
668 (target_filename != source_filename && in applypatch()
669 strcmp(target_filename, source_filename) != 0)) { in applypatch()
707 source_filename, target_filename, in applypatch()
718 int applypatch_flash(const char* source_filename, const char* target_filename, in applypatch_flash() argument
720 printf("flash %s: ", target_filename); in applypatch_flash()
729 std::string target_str(target_filename); in applypatch_flash()
733 printf("invalid target name \"%s\"", target_filename); in applypatch_flash()
759 if (WriteToPartition(source_file.data.data(), target_size, target_filename) != 0) { in applypatch_flash()
760 printf("write of copied data to %s failed\n", target_filename); in applypatch_flash()
771 const char* target_filename, in GenerateTarget() argument
781 bool target_is_partition = (strncmp(target_filename, "MTD:", 4) == 0 || in GenerateTarget()
782 strncmp(target_filename, "EMMC:", 5) == 0); in GenerateTarget()
783 const std::string tmp_target_filename = std::string(target_filename) + ".patch"; in GenerateTarget()
788 std::string target_fs = target_filename; in GenerateTarget()
963 memory_sink_str.size(), target_filename) != 0) { in GenerateTarget()
964 printf("write of patched data to %s failed\n", target_filename); in GenerateTarget()
980 if (rename(tmp_target_filename.c_str(), target_filename) != 0) { in GenerateTarget()
981 printf("rename of .patch to \"%s\" failed: %s\n", target_filename, strerror(errno)); in GenerateTarget()