diff options
Diffstat (limited to 'resources/utilities/coreboot-libre')
-rwxr-xr-x | resources/utilities/coreboot-libre/deblob | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/resources/utilities/coreboot-libre/deblob b/resources/utilities/coreboot-libre/deblob index cd9b463..5e263ff 100755 --- a/resources/utilities/coreboot-libre/deblob +++ b/resources/utilities/coreboot-libre/deblob @@ -30,7 +30,7 @@ if [ ! -d "coreboot/" ]; then printf "coreboot-libre deblob: no coreboot directory exists, so there is nothing to deblob\n" fi -for payloads in "coreboot/"*; do +for payloads in resources/libreboot/config/*; do if [ ! -d "${payloads}/" ]; then continue @@ -38,19 +38,16 @@ for payloads in "coreboot/"*; do payload="${payloads##*/}" - for boards in "coreboot/${payload}/"*; do + for boards in "${payload}/"*; do if [ ! -d "${boards}/" ]; then continue fi board="${boards##*/}" - boardpath="coreboot/${payload}/${board}" - if [ "${payload}" = "crossgcc" ]; then - cbrevision="${board}" - else - cbrevision="$(cat "resources/libreboot/config/${payload}/${board}/cbrevision")" - fi + cbrevision="$(cat "resources/libreboot/config/${payload}/${board}/cbrevision")" + vbrevision="$(cat "resources/libreboot/config/${payload}/${board}/vbootrevision")" + boardpath="coreboot/${cbrevision}/${cbrevision}" # deblob coreboot for blob in $(cat "resources/utilities/coreboot-libre/blobs/coreboot/${cbrevision}/blobs.list"); do |