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