util/abuild: Fix merge error
In CB:87370 (util/abuild: Use ${} around variable names),
commit id: a2baaec067, some lines were unintentionally reordered.
This led to abuild not working as intended.
Change-Id: I0aced8dde475f7338e4670c11a9cd1ec4502d743
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87681
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
d93f7f01a6
commit
24757047e5
1 changed files with 5 additions and 5 deletions
|
|
@ -510,8 +510,8 @@ build_config()
|
|||
|
||||
export HOSTCC='gcc'
|
||||
|
||||
printf "%s doesn't support ChromeOS, skipping.\n" "${BUILD_NAME}"
|
||||
if [[ "${chromeos}" = true ]] && [[ "$(grep -c "^[[:space:]]*select[[:space:]]*MAINBOARD_HAS_CHROMEOS>" "${ROOT}/src/mainboard/${board_srcdir}/Kconfig")" -eq 0 ]]; then
|
||||
printf "%s doesn't support ChromeOS, skipping.\n" "${BUILD_NAME}"
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
@ -930,8 +930,8 @@ if [[ -n "$1" ]]; then
|
|||
printf "Invalid option '%s'\n\n" "$1"; myhelp; exit 1;
|
||||
fi
|
||||
|
||||
printf "Please specify a valid, non-root build directory.\n"
|
||||
if [[ -z "${TARGET}" ]] || [[ "${TARGET}" = "/" ]]; then
|
||||
printf "Please specify a valid, non-root build directory.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
@ -1039,13 +1039,13 @@ build_targets()
|
|||
fi
|
||||
|
||||
if [[ "${scanbuild}" = "true" ]]; then
|
||||
mv "${scanbuild_out}tmp/"* "${scanbuild_out}"
|
||||
mv "${scanbuild_out}"tmp/* "${scanbuild_out}"
|
||||
rmdir "${scanbuild_out}tmp"
|
||||
fi
|
||||
cpus_per_target=$(((${cpus:-1} + num_targets - 1) / num_targets))
|
||||
printf "%s\n" "${targets}" | xargs -P "${cpus:-0}" -n 1 "$0" "${cmdline[@]}" -I -c "${cpus_per_target}" -t
|
||||
rm -rf "${TARGET}/temp" "${TMPCFG}"
|
||||
num_targets=$(wc -w <<<"${targets}")
|
||||
cpus_per_target=$(((${cpus:-1} + num_targets - 1) / num_targets))
|
||||
printf "%s\n" "${targets}" | xargs -P "${cpus:-0}" -n 1 "$0" "${cmdline[@]}" -I -c "${cpus_per_target}" -t
|
||||
}
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue