1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #!/usr/bin/env bash
- [ "x${DEBUG+set}" = 'xset' ] && set -v
- set -u -e
- printf "Deleting blobs in coreboot\n"
- for payloads in resources/libreboot/config/*; do
- if [ ! -d "${payloads}/" ]; then
- continue
- fi
- payload="${payloads##*/}"
- for boards in "${payloads}/"*; do
- if [ ! -d "${boards}/" ]; then
- continue
- fi
- board="${boards##*/}"
- cbrevision="$(cat "resources/libreboot/config/${payload}/${board}/cbrevision")"
- vbrevision="$(cat "resources/libreboot/config/${payload}/${board}/vbootrevision")"
- boardpath="coreboot/${cbrevision}/${cbrevision}"
-
- for blob in $(cat "resources/utilities/coreboot-libre/blobs/coreboot/${cbrevision}/blobs.list"); do
- rm -f "${boardpath}/${blob}"
- done
-
-
- if [ "${payload}" != "crossgcc" ]; then
- vbootrevision="$(cat "resources/libreboot/config/${payload}/${board}/vbootrevision")"
-
- for blob in $(cat "resources/utilities/coreboot-libre/blobs/vboot/${vbootrevision}/blobs.list"); do
- rm -f "${boardpath}/${blob}"
- done
- fi
- done
- done
- for blob in $(cat "resources/utilities/coreboot-libre/blobs/coreboot/crossgcc/blobs.list"); do
- rm -f "crossgcc/${blob}"
- done
- for blob in $(cat "resources/utilities/coreboot-libre/blobs/vboot/crossgcc/blobs.list"); do
- rm -f "crossgcc/${blob}"
- done
- printf "\n\n"
|