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>btrfsvols
parent
12b33eb8c1
commit
b9662fbe36
|
@ -55,7 +55,7 @@ build_for_mainboard() {
|
||||||
buildutils() {
|
buildutils() {
|
||||||
tree="${1}"
|
tree="${1}"
|
||||||
[ -d "coreboot/${tree}/" ] || \
|
[ -d "coreboot/${tree}/" ] || \
|
||||||
./fetch_trees coreboot $tree || \
|
./update project trees coreboot $tree || \
|
||||||
err "buildutils: cannot fetch ${tree}"
|
err "buildutils: cannot fetch ${tree}"
|
||||||
for util in cbfstool ifdtool; do
|
for util in cbfstool ifdtool; do
|
||||||
[ -f "cbutils/${tree}/${util}" ] && continue
|
[ -f "cbutils/${tree}/${util}" ] && continue
|
||||||
|
|
|
@ -72,7 +72,7 @@ main()
|
||||||
handle_dependencies()
|
handle_dependencies()
|
||||||
{
|
{
|
||||||
[ -d "grub/" ] || \
|
[ -d "grub/" ] || \
|
||||||
./fetch grub || \
|
./update project repo grub || \
|
||||||
err "handle_dependencies: cannot fetch grub"
|
err "handle_dependencies: cannot fetch grub"
|
||||||
[ -f "grub/grub-mkstandalone" ] || \
|
[ -f "grub/grub-mkstandalone" ] || \
|
||||||
./build grub utils || \
|
./build grub utils || \
|
||||||
|
|
|
@ -27,7 +27,7 @@ set -u -e
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
printf "Building GRUB\n"
|
printf "Building GRUB\n"
|
||||||
[ -d "grub/" ] || ./fetch grub || err "cannot fetch grub"
|
[ -d "grub/" ] || ./update project repo grub || err "cannot fetch grub"
|
||||||
build_grub
|
build_grub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ strip_archive()
|
||||||
romdir=${1}
|
romdir=${1}
|
||||||
|
|
||||||
[ -d "coreboot/${tree}" ] || \
|
[ -d "coreboot/${tree}" ] || \
|
||||||
./fetch_trees coreboot ${tree} || \
|
./update project trees coreboot ${tree} || \
|
||||||
err "strip_archive: coreboot/${tree}: can't fetch source"
|
err "strip_archive: coreboot/${tree}: can't fetch source"
|
||||||
./build coreboot utils ${tree} || \
|
./build coreboot utils ${tree} || \
|
||||||
err "strip_archive: coreboot/${tree}: can't build utils"
|
err "strip_archive: coreboot/${tree}: can't build utils"
|
||||||
|
|
|
@ -85,11 +85,11 @@ create_release_directory()
|
||||||
download_modules()
|
download_modules()
|
||||||
{
|
{
|
||||||
for modname in ${trees_fetch_list}; do
|
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"
|
err "download_modules: couldn't download ${modname} trees"
|
||||||
done
|
done
|
||||||
for modname in ${simple_fetch_list}; do
|
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"
|
err "download_modules: couldn't download ${modname} repo"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,7 @@ handle_dependencies()
|
||||||
|
|
||||||
codedir="${project}/${tree}"
|
codedir="${project}/${tree}"
|
||||||
[ -d "${codedir}" ] || \
|
[ -d "${codedir}" ] || \
|
||||||
./fetch_trees "${project}" "${target}" || \
|
./update project trees "${project}" "${target}" || \
|
||||||
fail "handle_dependencies: can't fetch ${project}/${target}"
|
fail "handle_dependencies: can't fetch ${project}/${target}"
|
||||||
|
|
||||||
# u-boot and coreboot are both compiled with coreboot's crossgcc
|
# u-boot and coreboot are both compiled with coreboot's crossgcc
|
||||||
|
@ -166,7 +166,7 @@ check_cross_compiler()
|
||||||
# only true if not building coreboot:
|
# only true if not building coreboot:
|
||||||
ctarget="${cbdir#coreboot/}"
|
ctarget="${cbdir#coreboot/}"
|
||||||
[ -d "${cbdir}" ] || \
|
[ -d "${cbdir}" ] || \
|
||||||
./fetch_trees coreboot ${ctarget} || \
|
./update project trees coreboot ${ctarget} || \
|
||||||
fail "check_cross_compiler: can't fetch coreboot/${ctarget}"
|
fail "check_cross_compiler: can't fetch coreboot/${ctarget}"
|
||||||
|
|
||||||
if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
|
if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
|
||||||
|
|
|
@ -52,7 +52,7 @@ main()
|
||||||
|
|
||||||
handle_dependencies()
|
handle_dependencies()
|
||||||
{
|
{
|
||||||
[ -d "${project}" ] || ./fetch "${project%/*}" || \
|
[ -d "${project}" ] || ./update project repo "${project%/*}" || \
|
||||||
err "handle_dependencies: can't fetch ${project%/*}"
|
err "handle_dependencies: can't fetch ${project%/*}"
|
||||||
[ -d "${project}" ] || \
|
[ -d "${project}" ] || \
|
||||||
err "handle_dependencies: ${project%/*} not downloaded"
|
err "handle_dependencies: ${project%/*} not downloaded"
|
||||||
|
|
|
@ -157,11 +157,11 @@ EOF
|
||||||
build_dependencies()
|
build_dependencies()
|
||||||
{
|
{
|
||||||
[ -d ${cbdir} ] || \
|
[ -d ${cbdir} ] || \
|
||||||
./fetch_trees coreboot ${cbdir##*/} || \
|
./update project trees coreboot ${cbdir##*/} || \
|
||||||
err "build_dependencies: can't fetch ${cbdir}"
|
err "build_dependencies: can't fetch ${cbdir}"
|
||||||
for d in uefitool biosutilities bios_extract me_cleaner; do
|
for d in uefitool biosutilities bios_extract me_cleaner; do
|
||||||
[ -d "${d}" ] && continue
|
[ -d "${d}" ] && continue
|
||||||
./fetch "${d}" || \
|
./update project repo "${d}" || \
|
||||||
err "build_dependencies: can't fetch ${d}"
|
err "build_dependencies: can't fetch ${d}"
|
||||||
done
|
done
|
||||||
[ -f uefitool/uefiextract ] || \
|
[ -f uefitool/uefiextract ] || \
|
||||||
|
|
|
@ -56,10 +56,10 @@ check_board()
|
||||||
build_dependencies()
|
build_dependencies()
|
||||||
{
|
{
|
||||||
if [ ! -d me_cleaner ]; then
|
if [ ! -d me_cleaner ]; then
|
||||||
./fetch me_cleaner || \
|
./update project repo me_cleaner || \
|
||||||
err "build_dependencies: can't fetch me_cleaner"
|
err "build_dependencies: can't fetch me_cleaner"
|
||||||
elif [ ! -d "${cbdir}" ]; then
|
elif [ ! -d "${cbdir}" ]; then
|
||||||
./fetch_trees coreboot default || \
|
./update project trees coreboot default || \
|
||||||
err "build_dependencies: can't fetch coreboot"
|
err "build_dependencies: can't fetch coreboot"
|
||||||
elif [ ! -f "${ifdtool}" ]; then
|
elif [ ! -f "${ifdtool}" ]; then
|
||||||
make -C "${ifdtool%/ifdtool}" || \
|
make -C "${ifdtool%/ifdtool}" || \
|
||||||
|
|
|
@ -123,7 +123,8 @@ detect_board()
|
||||||
|
|
||||||
build_dependencies()
|
build_dependencies()
|
||||||
{
|
{
|
||||||
[ -d "${cbdir}" ] || ./fetch_trees coreboot default
|
[ -d "${cbdir}" ] || ./update project trees coreboot default || \
|
||||||
|
err "build_dependencies: could not download coreboot/default"
|
||||||
./build coreboot utils default || \
|
./build coreboot utils default || \
|
||||||
err "build_dependencies: could not build cbutils"
|
err "build_dependencies: could not build cbutils"
|
||||||
./update blobs download ${board} || \
|
./update blobs download ${board} || \
|
||||||
|
|
|
@ -71,7 +71,7 @@ check_existing()
|
||||||
|
|
||||||
build_dependencies()
|
build_dependencies()
|
||||||
{
|
{
|
||||||
[ -d "${cbdir}/" ] || ./fetch_trees coreboot default || \
|
[ -d "${cbdir}/" ] || ./update project trees coreboot default || \
|
||||||
err "build_dependencies: cannot fetch coreboot/default"
|
err "build_dependencies: cannot fetch coreboot/default"
|
||||||
./build coreboot utils default || \
|
./build coreboot utils default || \
|
||||||
err "build_dependencies: cannot build cbutils/default"
|
err "build_dependencies: cannot build cbutils/default"
|
||||||
|
|
Loading…
Reference in New Issue