diff options
Diffstat (limited to 'resources/scripts/helpers/build/clean')
-rwxr-xr-x | resources/scripts/helpers/build/clean/coreboot | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/resources/scripts/helpers/build/clean/coreboot b/resources/scripts/helpers/build/clean/coreboot index 2f7701e..baaabbd 100755 --- a/resources/scripts/helpers/build/clean/coreboot +++ b/resources/scripts/helpers/build/clean/coreboot @@ -31,7 +31,8 @@ printf "Cleaning the previous build of coreboot and its utilities\n" # clean coreboot and crossgcc (source archives preserved) for payload in coreboot/*; do for board in "${payload}/"*; do - # Clean coreboot, of course + + # Clean coreboot, of course make -C "${board}/" distclean # Clean its utilities as well @@ -40,16 +41,15 @@ for payload in coreboot/*; do done make -C "${board}/payloads/libpayload/" distclean - # Clean crossgcc - if [ "${payload##*/}" != "crossgcc" ]; then # is a symlink - # delete symlink to crossgcc - rm -f "${board}/util/crossgcc" - else # is the real crossgcc - # payload is crossgcc - # board is not a board, it's a coreboot revision - make -C "${board}/" crossgcc-clean - fi + rm -f "${board}/util/crossgcc" done done +# Also do the same for the crossgcc version of coreboot +make -C "crossgcc/" crossgcc-clean +for util in {cbfs,ifd,nvram}tool cbmem; do + make -C "crossgcc/util/${util}/" clean +done +make -C "crosgcc/" distclean + printf "\n\n" |