run coreboot utils from own directory

this means coreboot can now be distcleaned safely,
before and after each build of a rom image

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-06-24 23:23:16 +01:00
parent 4a49ea3599
commit 941fbcbf1b
6 changed files with 29 additions and 38 deletions
+2 -5
View File
@@ -121,7 +121,7 @@ load_config()
fi
romdir="bin/${board}"
cbfstool="${cbdir}/util/cbfstool/cbfstool"
cbfstool="cbutils/${cbtree}/cbfstool"
seavgabiosrom="payload/seabios/seavgabios.bin"
corebootrom="${cbdir}/build/coreboot.rom"
@@ -236,9 +236,7 @@ build_dependencies()
if [ ! -d "${cbdir}" ]; then
./download coreboot ${cbtree}
fi
if [ ! -f "${cbfstool}" ]; then
./build module cbutils ${cbtree} || exit 1
fi
./build module cbutils ${cbtree} || exit 1
cat version > "${cbdir}/.coreboot-version"
build_dependency_crossgcc
@@ -499,7 +497,6 @@ mkCoreboot()
fi
cp "${_cbcfg}" "${cbdir}"/.config
./build module cbutils ${cbdir#coreboot/} || exit 1
make -j$(nproc) -BC "${cbdir}"
}