tree.sh: re-add comments to check_hashes

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-08-04 09:16:58 +01:00
parent 3d5a6bccae
commit 1c5c28f2cb
+6
View File
@@ -173,11 +173,17 @@ build_dependencies()
done; :
}
# get sha512sums of project-related files, concatenate and then
# get a sha512sum of *that*; cache and re-check to detect changes
check_project_hashes()
{
# delete project source tree, if it changes; works for both
# single and multi-tree, since "tree" will be blank on single-tree
check_hashes hash "$tree" badhash "$datadir" "$configdir/$tree" \
"$mdir" || x_ rm -Rf "src/$project/$tree" "elf/$project/$tree"; :
# check only the given target; delete only the target build
# if that's all that changed (not applicable to single-tree)
singletree "$project" || [ -z "$target" ] || \
check_hashes tghash "$target" badtghash "$configdir/$target" || \
x_ rm -Rf "elf/$project/$tree/$target"; :