mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 18:34:57 +02:00
mk: tidy up check_project_hashes() sha512sum check
the extra function isn't needed at all. awk can just handle every line all at once. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -277,9 +277,9 @@ check_project_hashes()
|
|||||||
[ ! -f "$XBMK_CACHE/hash/$project$tree" ] || \
|
[ ! -f "$XBMK_CACHE/hash/$project$tree" ] || \
|
||||||
read -r old_pjhash < "$XBMK_CACHE/hash/$project$tree"
|
read -r old_pjhash < "$XBMK_CACHE/hash/$project$tree"
|
||||||
|
|
||||||
x_ rm -f "$xbmktmp/project.hash"
|
fx_ sha512sum "$datadir" "$configdir/$tree" "$mdir" \
|
||||||
fx_ create_project_hash "$datadir" "$configdir/$tree" "$mdir" \
|
-type f -not -path "*/.git*/*" | awk '{print $1}' > \
|
||||||
-type f -not -path "*/.git*/*"
|
"$xbmktmp/project.hash" || $err "!h $project $tree"
|
||||||
|
|
||||||
pjhash="$(sha512sum "$xbmktmp/project.hash" | awk '{print $1}')" || :
|
pjhash="$(sha512sum "$xbmktmp/project.hash" | awk '{print $1}')" || :
|
||||||
[ "$pjhash" != "$old_pjhash" ] && badhash="y"
|
[ "$pjhash" != "$old_pjhash" ] && badhash="y"
|
||||||
@@ -292,12 +292,6 @@ check_project_hashes()
|
|||||||
"elf/$project/$tree" "elf/$project/$target"; :
|
"elf/$project/$tree" "elf/$project/$target"; :
|
||||||
}
|
}
|
||||||
|
|
||||||
create_project_hash()
|
|
||||||
{
|
|
||||||
[ ! -f "$1" ] || x_ sha512sum "$1" | awk \
|
|
||||||
'{print $1}' >> "$xbmktmp/project.hash" || $err "!h $1"; :
|
|
||||||
}
|
|
||||||
|
|
||||||
check_cross_compiler()
|
check_cross_compiler()
|
||||||
{
|
{
|
||||||
xgccargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
|
xgccargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
|
||||||
|
|||||||
Reference in New Issue
Block a user