build/release/src: update based on recent changes
Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
5a47c01b11
commit
95f290d9e3
|
@ -25,8 +25,8 @@ set -u -e
|
||||||
|
|
||||||
projectname="$(cat projectname)"
|
projectname="$(cat projectname)"
|
||||||
|
|
||||||
trees_fetch_list="coreboot u-boot"
|
trees_fetch_list="coreboot u-boot seabios"
|
||||||
simple_fetch_list="flashrom grub memtest86plus seabios me_cleaner uefitool"
|
simple_fetch_list="flashrom grub memtest86plus me_cleaner uefitool"
|
||||||
simple_fetch_list="${simple_fetch_list} bios_extract biosutilities"
|
simple_fetch_list="${simple_fetch_list} bios_extract biosutilities"
|
||||||
|
|
||||||
dirlist="resources util" # do not add blobs directory here. it's handled below
|
dirlist="resources util" # do not add blobs directory here. it's handled below
|
||||||
|
@ -133,47 +133,41 @@ copy_blobs()
|
||||||
|
|
||||||
purge_files()
|
purge_files()
|
||||||
{
|
{
|
||||||
(
|
|
||||||
cd "${srcdir}/coreboot/" || err "purge_files 1: !cd ${srcdir}/coreboot/"
|
|
||||||
for i in *; do
|
|
||||||
[ -d "${i}" ] || continue
|
|
||||||
(
|
|
||||||
cd "${i}/" || \
|
|
||||||
err "purge_files 2: !cd ${i}/"
|
|
||||||
make distclean || err "purge_files 1: ${i}: !make distclean"
|
|
||||||
)
|
|
||||||
make clean -BC default/util/kbc1126/ || \
|
|
||||||
err "purge_files 1: default/util/kbc1126: ! make clean"
|
|
||||||
done
|
|
||||||
)
|
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "${srcdir}/" || \
|
cd "${srcdir}/" || \
|
||||||
err "purge_files 3: !cd ${srcdir}/"
|
err "purge_files 3: !cd ${srcdir}/"
|
||||||
|
|
||||||
|
for p in coreboot/*; do
|
||||||
|
[ -d "${p}" ] || continue
|
||||||
|
./build src for -c "${p}" || \
|
||||||
|
err "purge_files 1: ${p}: !make distclean"
|
||||||
|
done
|
||||||
|
|
||||||
|
./build src for -c coreboot/default/util/kbc1126 || \
|
||||||
|
err "purge_files 1: default/util/kbc1126: ! make clean"
|
||||||
./build clean all || \
|
./build clean all || \
|
||||||
err "purge_files 1: ! ./build clean all"
|
err "purge_files 1: ! ./build clean all"
|
||||||
for p in bios_extract flashrom grub ich9utils memtest86plus uefitool; do
|
|
||||||
|
for p in bios_extract flashrom grub ich9utils uefitool; do
|
||||||
./build src for -c "${p}" || \
|
./build src for -c "${p}" || \
|
||||||
err "purge_files: !./build src for -c ${p}"
|
err "purge_files: !./build src for -c ${p}"
|
||||||
done
|
done
|
||||||
make clean -BC util/nvmutil || \
|
for p in 32 64; do
|
||||||
err "purge_files 2: !make clean -BC util/nvmutil"
|
./build src for -c "memtest86plus/build${p}" || \
|
||||||
make clean -BC util/ich9utils || \
|
err "purge_files: cannot clean memtest86+ build${p}"
|
||||||
err "purge_files 3: !make clean -BC util/ich9utils"
|
done
|
||||||
make clean -BC util/spkmodem_recv || \
|
for p in "nvmutil" "ich9utils" "spkmodem_recv" "e6400-flash-unlock"; do
|
||||||
err "purge_files 4: !make clean -BC util/spkmodem_recv"
|
make clean -C "util/${p}" || \
|
||||||
make clean -BC util/e6400-flash-unlock || \
|
|
||||||
err "purge_files 5: !make clean -BC util/e6400-flash-unlock"
|
|
||||||
|
|
||||||
rm -Rf coreboot/coreboot/ || \
|
err "purge_files 2: !make clean -C ${util}/p"
|
||||||
err "purge_files 1: !rm -Rf coreboot/coreboot/"
|
done
|
||||||
rm -Rf .git .gitignore */.git* coreboot/*/.git* \
|
for p in ${trees_fetch_list}; do
|
||||||
coreboot/*/3rdparty/*/.git* || \
|
rm -Rf "${p}/${p}" "${p}"/*/.git* || \
|
||||||
|
err "purge_files 1: cannot clean ${p} project files"
|
||||||
|
done
|
||||||
|
rm -Rf .git .gitignore */.git* coreboot/*/3rdparty/*/.git* \
|
||||||
|
coreboot/*/util/nvidia/cbootimage/.git* || \
|
||||||
err "purge_files rm-rf2: can't purge .git files/directories"
|
err "purge_files rm-rf2: can't purge .git files/directories"
|
||||||
rm -Rf coreboot/*/util/nvidia/cbootimage/.git* || \
|
|
||||||
err "purge_files 3: !rm -Rf coreboot/*/util/nvidia/cbootimage/.git*"
|
|
||||||
rm -Rf u-boot/u-boot/ u-boot/*/.git* || \
|
|
||||||
err "purge_files 4: ¬rm -Rf u-boot/u-boot/ u-boot/*/.git*"
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue