mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
tree.sh: re-add comments to check_hashes
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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"; :
|
||||
|
||||
Reference in New Issue
Block a user