handle/make/config: properly handle cbutils

it wasn't being checked for, to run cbfstool.

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-09-02 12:04:50 +01:00
parent a3bc7ccd71
commit 3c7b09ace9
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ romtype=""
target=""
target_dir=""
tree=""
cbfstool=""
main()
{
@ -146,6 +147,9 @@ handle_dependencies()
if [ "${project}" = "coreboot" ] || [ "${project}" = "u-boot" ]; then
[ "${mode}" != "all" ] || check_cross_compiler || \
fail "handle_dependencies ${project}/${target}: crossgcc"
cbfstool="cbutils/${tree}/cbfstool"
[ -f "${cbfstool}" ] || ./build coreboot utils "${tree}" || \
fail "handle_dependencies: cannot build cbfstool"
fi
}