minor code cleanup in the build system

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-06-09 18:48:58 +01:00 committed by Leah Rowe
parent 070aee6728
commit 4f6fbfde81
4 changed files with 6 additions and 9 deletions

3
build
View File

@ -123,8 +123,7 @@ fetch_trees()
fail()
{
tmp_cleanup || printf "WARNING: can't rm tmp files: %s\n" "$tmpdir" \
1>&2
tmp_cleanup || printf "WARNING: can't rm tmpfiles: %s\n" "$tmpdir" 1>&2
err_ "${1}"
}

View File

@ -1,4 +1,4 @@
doc/
doc
Licenses/r8a779x_usb3.txt
drivers/usb/host/xhci-rcar-r8a779x_usb3_v3.h
arch/mips/mach-octeon/include/mach/cvmx-pki-cluster.h

View File

@ -11,8 +11,7 @@ fetch_project_trees()
[ ! -d "src/$project/$project" ] && x_ mkdir -p "src/$project" \
&& fetch_project_repo "$project"
fetch_config
e "src/$project/$tree" d && return 0
prepare_new_tree
e "src/$project/$tree" d || prepare_new_tree; return 0
}
fetch_config()

View File

@ -152,10 +152,9 @@ configure_target()
[ -n "$_scandisk" ] && grub_scan_disk="$_scandisk"
[ -z "$grub_scan_disk" ] && grub_scan_disk="nvme ahci ata"
_ata=""
_ahci=""
_nvme=""
_grub_scan_disk=""
eval "$(setvars "" _ata _ahci _nvme _grub_scan_disk)"
for _disk in $grub_scan_disk; do
[ "$_disk" != "nvme" ] && [ "$_disk" != "ahci" ] && \
[ "$_disk" != "ata" ] && _grub_scan_disk="nvme ahci ata" \