mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-15 17:58:46 +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:
@@ -55,7 +55,7 @@ build_for_mainboard() {
|
||||
buildutils() {
|
||||
tree="${1}"
|
||||
[ -d "coreboot/${tree}/" ] || \
|
||||
./fetch_trees coreboot $tree || \
|
||||
./update project trees coreboot $tree || \
|
||||
err "buildutils: cannot fetch ${tree}"
|
||||
for util in cbfstool ifdtool; do
|
||||
[ -f "cbutils/${tree}/${util}" ] && continue
|
||||
|
||||
@@ -72,7 +72,7 @@ main()
|
||||
handle_dependencies()
|
||||
{
|
||||
[ -d "grub/" ] || \
|
||||
./fetch grub || \
|
||||
./update project repo grub || \
|
||||
err "handle_dependencies: cannot fetch grub"
|
||||
[ -f "grub/grub-mkstandalone" ] || \
|
||||
./build grub utils || \
|
||||
|
||||
@@ -27,7 +27,7 @@ set -u -e
|
||||
main()
|
||||
{
|
||||
printf "Building GRUB\n"
|
||||
[ -d "grub/" ] || ./fetch grub || err "cannot fetch grub"
|
||||
[ -d "grub/" ] || ./update project repo grub || err "cannot fetch grub"
|
||||
build_grub
|
||||
}
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ strip_archive()
|
||||
romdir=${1}
|
||||
|
||||
[ -d "coreboot/${tree}" ] || \
|
||||
./fetch_trees coreboot ${tree} || \
|
||||
./update project trees coreboot ${tree} || \
|
||||
err "strip_archive: coreboot/${tree}: can't fetch source"
|
||||
./build coreboot utils ${tree} || \
|
||||
err "strip_archive: coreboot/${tree}: can't build utils"
|
||||
|
||||
@@ -85,11 +85,11 @@ create_release_directory()
|
||||
download_modules()
|
||||
{
|
||||
for modname in ${trees_fetch_list}; do
|
||||
[ -d "${modname}" ] || ./fetch_trees ${modname} || \
|
||||
[ -d "${modname}" ] || ./update project trees ${modname} || \
|
||||
err "download_modules: couldn't download ${modname} trees"
|
||||
done
|
||||
for modname in ${simple_fetch_list}; do
|
||||
[ -d "${modname}/" ] || ./fetch ${modname} || \
|
||||
[ -d "${modname}/" ] || ./update project repo ${modname} || \
|
||||
err "download_modules: couldn't download ${modname} repo"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user