123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #!/usr/bin/env bash
- [ "x${DEBUG+set}" = 'xset' ] && set -v
- set -u -e
- printf "Downloading SeaBIOS\n"
- rm -f build_error
- rm -rf "seabios/"
- git clone https://review.coreboot.org/seabios || git clone https://github.com/coreboot/seabios
- if [ ! -d "seabios" ]; then
- printf "seabios not downloaded; check network connection?\n\n"
- exit 1
- fi
- (
- cd "seabios/"
- git reset --hard 64f37cc530f144e53c190c9e8209a51b58fd5c43
- for patchfile in ../resources/seabios/patches/*.patch; do
- if [ ! -f "${patchfile}" ]; then continue; fi
- git am "${patchfile}" || touch ../build_error
- if [ -f ../build_error ]; then
- git am --abort
- break
- fi
- done
- )
- if [ -f build_error ]; then
- rm -f build_error
- exit 1
- fi
- exit 0
|