mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 14:59:34 +02:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user