only build cbutils if required
it's sometimes done unconditionally. this change ensures that it is not repeated needlessly. i observed otherwise that cbfstool would be re-built from time to time, even if it was built. Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
42068f7ce1
commit
c44a38aefc
|
@ -132,6 +132,7 @@ prepare_target()
|
||||||
cbfstool="cbutils/${tree}/cbfstool"
|
cbfstool="cbutils/${tree}/cbfstool"
|
||||||
cbrom="${cbdir}/build/coreboot.rom"
|
cbrom="${cbdir}/build/coreboot.rom"
|
||||||
|
|
||||||
|
[ -f "${cbfstool}" ] || \
|
||||||
x_ ./update project trees -b coreboot utils ${tree}
|
x_ ./update project trees -b coreboot utils ${tree}
|
||||||
|
|
||||||
build_dependency_seabios
|
build_dependency_seabios
|
||||||
|
|
|
@ -50,7 +50,9 @@ build_dependencies()
|
||||||
x_ ./update project trees -b uefitool
|
x_ ./update project trees -b uefitool
|
||||||
[ -f "${kbc1126_ec_dump}" ] || \
|
[ -f "${kbc1126_ec_dump}" ] || \
|
||||||
x_ make -C "${cbdir}/util/kbc1126"
|
x_ make -C "${cbdir}/util/kbc1126"
|
||||||
|
if [ ! -f "${cbfstool}" ] || [ ! -f "${ifdtool}" ]; then
|
||||||
x_ ./update project trees -b coreboot utils default
|
x_ ./update project trees -b coreboot utils default
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
download_vendorfiles()
|
download_vendorfiles()
|
||||||
|
|
|
@ -88,7 +88,9 @@ detect_board()
|
||||||
build_dependencies()
|
build_dependencies()
|
||||||
{
|
{
|
||||||
[ -d "${cbdir}" ] || x_ ./update project trees -f coreboot default
|
[ -d "${cbdir}" ] || x_ ./update project trees -f coreboot default
|
||||||
|
if [ ! -f "${cbfstool}" ] || [ ! -f "${ifdtool}" ]; then
|
||||||
x_ ./update project trees -b coreboot utils default
|
x_ ./update project trees -b coreboot utils default
|
||||||
|
fi
|
||||||
x_ ./update vendor download ${board}
|
x_ ./update vendor download ${board}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue