mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 08:20:59 +02:00
handle project downloads in main lbmk script
this means the unified /tmp handling is now provided for in both the former "fetch" and "fetch_trees" script, which are now (respectively): ./update project repo ./update project trees if the fetch scripts weren't cleaning /tmp before, they now are, because lbmk handles it Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -139,7 +139,7 @@ handle_dependencies()
|
||||
|
||||
codedir="${project}/${tree}"
|
||||
[ -d "${codedir}" ] || \
|
||||
./fetch_trees "${project}" "${target}" || \
|
||||
./update project trees "${project}" "${target}" || \
|
||||
fail "handle_dependencies: can't fetch ${project}/${target}"
|
||||
|
||||
# u-boot and coreboot are both compiled with coreboot's crossgcc
|
||||
@@ -166,7 +166,7 @@ check_cross_compiler()
|
||||
# only true if not building coreboot:
|
||||
ctarget="${cbdir#coreboot/}"
|
||||
[ -d "${cbdir}" ] || \
|
||||
./fetch_trees coreboot ${ctarget} || \
|
||||
./update project trees coreboot ${ctarget} || \
|
||||
fail "check_cross_compiler: can't fetch coreboot/${ctarget}"
|
||||
|
||||
if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
|
||||
|
||||
@@ -52,7 +52,7 @@ main()
|
||||
|
||||
handle_dependencies()
|
||||
{
|
||||
[ -d "${project}" ] || ./fetch "${project%/*}" || \
|
||||
[ -d "${project}" ] || ./update project repo "${project%/*}" || \
|
||||
err "handle_dependencies: can't fetch ${project%/*}"
|
||||
[ -d "${project}" ] || \
|
||||
err "handle_dependencies: ${project%/*} not downloaded"
|
||||
|
||||
Reference in New Issue
Block a user