diff options
author | Leah Rowe <leah@libreboot.org> | 2023-08-16 21:34:21 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-08-16 22:40:34 +0100 |
commit | 59dba6cfcdc6c154e4d46c14c42e7b6f0b84c7b5 (patch) | |
tree | 59147fae1f05a32c954772cd22ffab1405aaad0b /resources/scripts/build/clean/cbutils | |
parent | 2453c303e64b3b3c2480564106ea77d89af624d8 (diff) |
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>
Diffstat (limited to 'resources/scripts/build/clean/cbutils')
-rwxr-xr-x | resources/scripts/build/clean/cbutils | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/scripts/build/clean/cbutils b/resources/scripts/build/clean/cbutils index 54659564..de9a588f 100755 --- a/resources/scripts/build/clean/cbutils +++ b/resources/scripts/build/clean/cbutils @@ -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" |