Skip to content

Commit

Permalink
build-uefi.sh: Run "make crossgcc-i386" if build is older than 30 days.
Browse files Browse the repository at this point in the history
  • Loading branch information
archfan committed Dec 25, 2019
1 parent 1d751fb commit f5c2cca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-uefi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

set -e

CHECK_FILE="util/crossgcc/xgcc/bin/iasl"
if [ ! -f "$CHECK_FILE" ] || [ `find "$CHECK_FILE" -mtime +30 | egrep '.*'` ]; then
make crossgcc-i386 CPUS=$(nproc)
else
echo "crossgcc is reasonably up-to-date. No need to waste precious cycles."
fi

device="t440p"
filename="coreboot_tiano_${device}_archfan_`date +"%Y%m%d"`.rom"
rm -f ~/dev/firmware/${filename}*
Expand Down

0 comments on commit f5c2cca

Please sign in to comment.