Remove HashTreeInfo from verity_utils.py
We are removing VB related functionalities from release tools. This change removes the hashtreeinfo and generator in verity_utils.py. It also clears the function args using it. Bug: 241044073 Test: atest under build/make Change-Id: Icc298256be6917ffbd40cf4735f8e8092b541c9f
This commit is contained in:
@@ -537,14 +537,6 @@ class BlockImageDiff(object):
|
||||
|
||||
self.touched_src_sha1 = self.src.RangeSha1(self.touched_src_ranges)
|
||||
|
||||
if self.tgt.hashtree_info:
|
||||
out.append("compute_hash_tree {} {} {} {} {}\n".format(
|
||||
self.tgt.hashtree_info.hashtree_range.to_string_raw(),
|
||||
self.tgt.hashtree_info.filesystem_range.to_string_raw(),
|
||||
self.tgt.hashtree_info.hash_algorithm,
|
||||
self.tgt.hashtree_info.salt,
|
||||
self.tgt.hashtree_info.root_hash))
|
||||
|
||||
# Zero out extended blocks as a workaround for bug 20881595.
|
||||
if self.tgt.extended:
|
||||
assert (WriteSplitTransfers(out, "zero", self.tgt.extended) ==
|
||||
@@ -830,12 +822,6 @@ class BlockImageDiff(object):
|
||||
assert touched[i] == 0
|
||||
touched[i] = 1
|
||||
|
||||
if self.tgt.hashtree_info:
|
||||
for s, e in self.tgt.hashtree_info.hashtree_range:
|
||||
for i in range(s, e):
|
||||
assert touched[i] == 0
|
||||
touched[i] = 1
|
||||
|
||||
# Check that we've written every target block.
|
||||
for s, e in self.tgt.care_map:
|
||||
for i in range(s, e):
|
||||
|
Reference in New Issue
Block a user