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
+7 -7
View File
@@ -44,20 +44,20 @@ main()
modifyconf() {
board="$1"
if [ ! -f "resources/coreboot/${board}/board.cfg" ]; then
printf "\nmodify/config/coreboot: no board.cfg for: %s\n" \
if [ ! -f "resources/coreboot/${board}/target.cfg" ]; then
printf "\nmodify/config/coreboot: no target.cfg for: %s\n" \
"${board}"
fi
cbtree=""
. "resources/coreboot/${board}/board.cfg" # source
tree=""
. "resources/coreboot/${board}/target.cfg" # source
if [ -z ${cbtree} ]; then
if [ -z ${tree} ]; then
return 0
fi
cbdir="coreboot/${cbtree}"
cbdir="coreboot/${tree}"
if [ ! -d "${cbdir}" ]; then
./download coreboot ${cbtree}
./fetch_trees coreboot ${tree}
fi
for cbcfg in resources/coreboot/${board}/config/*; do