summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-12 17:38:14 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-12 17:38:14 +0100
commit972681a127bbade608b5abd5ec94a6a74597f2b6 (patch)
tree7bdf3cbf79d5e740e4e55113a2c37a8f6f909a94
parentb41cd39b686e66d1801e5b32fb7da763b98d934a (diff)
mk: minor cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk8
1 files changed, 3 insertions, 5 deletions
diff --git a/mk b/mk
index c8fdffa7..b1d6cea0 100755
--- a/mk
+++ b/mk
@@ -348,9 +348,8 @@ check_project_hashes()
printf "%s\n" "$pjhash" > "$XBMK_CACHE/hash/$project$tree" || \
$err "!mk $XBMK_CACHE/hash/$project$tree"
- [ "$badhash" != "y" ] || rm -Rf "src/$project/$tree" \
- "elf/$project/$tree" "elf/$project/$target" || \
- $err "!rm $project $tree"; :
+ [ "$badhash" != "y" ] || x_ rm -Rf "src/$project/$tree" \
+ "elf/$project/$tree" "elf/$project/$target"; :
}
check_cross_compiler()
@@ -375,8 +374,7 @@ check_cross_compiler()
# sometimes buildgcc fails for like no reason. try twice.
make -C "$cbdir" crossgcc-$xfix $xgccargs || \
- make -C "$cbdir" crossgcc-$xfix $xgccargs || \
- $err "!mkxgcc $project/$xtree '$xfix' '$xgccargs'"
+ x_ make -C "$cbdir" crossgcc-$xfix $xgccargs
# we only want to mess with hostcc to build xgcc
rm -f "$XBMK_CACHE/gnupath/"* || \