merge coreboot/u-boot download logic to one script

they are fundamentally the same, in an lbmk context.

they are downloaded in the same way, and compiled in
the same way!

(Kconfig infrastructure, board-specific code, the way
submodules are used in git, etc)

~200 sloc reduction in resources/scripts

the audit begins

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-08-16 21:34:21 +01:00
parent 2453c303e6
commit 59dba6cfcd
136 changed files with 642 additions and 884 deletions
+6 -6
View File
@@ -32,21 +32,21 @@ rm -Rf cbutils
[ ! -d "coreboot/" ] && exit 0
for cbtree in coreboot/*; do
if [ "${cbtree##*/}" = "coreboot" ]; then
for tree in coreboot/*; do
if [ "${tree##*/}" = "coreboot" ]; then
continue
fi
if [ ! -d "${cbtree}" ]; then
if [ ! -d "${tree}" ]; then
continue
fi
# Clean coreboot, of course
make -C "${cbtree}/" distclean
make -C "${tree}/" distclean
# Clean its utilities as well
for util in cbfstool ifdtool nvramtool cbmem; do
make distclean -C "${cbtree}/util/${util}/"
make distclean -C "${tree}/util/${util}/"
done
make distclean -C "${cbtree}/payloads/libpayload/"
make distclean -C "${tree}/payloads/libpayload/"
done
printf "\n\n"