minor code cleanup in the build system
Signed-off-by: Leah Rowe <leah@libreboot.org>20240612_branch
parent
c5441bb9f5
commit
2ee186aee3
3
build
3
build
|
@ -128,8 +128,7 @@ fetch_trees()
|
||||||
|
|
||||||
fail()
|
fail()
|
||||||
{
|
{
|
||||||
tmp_cleanup || printf "WARNING: can't rm tmp files: %s\n" "$tmpdir" \
|
tmp_cleanup || printf "WARNING: can't rm tmpfiles: %s\n" "$tmpdir" 1>&2
|
||||||
1>&2
|
|
||||||
err_ "${1}"
|
err_ "${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,7 @@ fetch_project_trees()
|
||||||
[ ! -d "src/$project/$project" ] && x_ mkdir -p "src/$project" \
|
[ ! -d "src/$project/$project" ] && x_ mkdir -p "src/$project" \
|
||||||
&& fetch_project_repo "$project"
|
&& fetch_project_repo "$project"
|
||||||
fetch_config
|
fetch_config
|
||||||
e "src/$project/$tree" d && return 0
|
e "src/$project/$tree" d || prepare_new_tree; return 0
|
||||||
prepare_new_tree
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch_config()
|
fetch_config()
|
||||||
|
|
|
@ -131,8 +131,7 @@ mkdirs()
|
||||||
|
|
||||||
mkdir -p "${1%/*}" || $err "mkdirs: !mkdir -p ${1%/*}"
|
mkdir -p "${1%/*}" || $err "mkdirs: !mkdir -p ${1%/*}"
|
||||||
remkdir "$appdir"
|
remkdir "$appdir"
|
||||||
extract_archive "$_dl" "$appdir" || \
|
extract_archive "$_dl" "$appdir" || [ "$2" = "extract_e6400vga" ] || \
|
||||||
[ "$2" = "extract_e6400vga" ] || \
|
|
||||||
$err "mkdirs $1 $2: !extract"; return 0
|
$err "mkdirs $1 $2: !extract"; return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,10 +152,9 @@ configure_target()
|
||||||
|
|
||||||
[ -n "$_scandisk" ] && grub_scan_disk="$_scandisk"
|
[ -n "$_scandisk" ] && grub_scan_disk="$_scandisk"
|
||||||
[ -z "$grub_scan_disk" ] && grub_scan_disk="nvme ahci ata"
|
[ -z "$grub_scan_disk" ] && grub_scan_disk="nvme ahci ata"
|
||||||
_ata=""
|
|
||||||
_ahci=""
|
eval "$(setvars "" _ata _ahci _nvme _grub_scan_disk)"
|
||||||
_nvme=""
|
|
||||||
_grub_scan_disk=""
|
|
||||||
for _disk in $grub_scan_disk; do
|
for _disk in $grub_scan_disk; do
|
||||||
[ "$_disk" != "nvme" ] && [ "$_disk" != "ahci" ] && \
|
[ "$_disk" != "nvme" ] && [ "$_disk" != "ahci" ] && \
|
||||||
[ "$_disk" != "ata" ] && _grub_scan_disk="nvme ahci ata" \
|
[ "$_disk" != "ata" ] && _grub_scan_disk="nvme ahci ata" \
|
||||||
|
|
Loading…
Reference in New Issue