Lines Matching refs:target
49 static bool GenerateTarget(const Partition& target, const FileContents& source_file,
256 bool PatchPartitionCheck(const Partition& target, const Partition& source) { in PatchPartitionCheck() argument
259 return (ReadPartitionToBuffer(target, &target_file, false) || in PatchPartitionCheck()
268 bool PatchPartition(const Partition& target, const Partition& source, const Value& patch, in PatchPartition() argument
270 LOG(INFO) << "Patching " << target.name; in PatchPartition()
274 if (ReadPartitionToBuffer(target, &target_file, false)) { in PatchPartition()
277 LOG(INFO) << " already " << target.hash.substr(0, 8); in PatchPartition()
283 return GenerateTarget(target, source_file, patch, bonus); in PatchPartition()
328 static bool GenerateTarget(const Partition& target, const FileContents& source_file, in GenerateTarget() argument
331 if (ParseSha1(target.hash, expected_sha1) != 0) { in GenerateTarget()
332 LOG(ERROR) << "Failed to parse target hash \"" << target.hash << "\""; in GenerateTarget()
412 if (!WriteBufferToPartition(patched, target)) { in GenerateTarget()
413 LOG(ERROR) << "Failed to write patched data to " << target.name; in GenerateTarget()