seabios 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright (C) 2015, 2016 Leah Rowe <info@minifree.org>
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. # This script assumes that the working directory is the
  19. # root of libreboot_src or libreboot git.
  20. [ "x${DEBUG+set}" = 'xset' ] && set -v
  21. set -u -e
  22. # Get SeaBIOS, revert to commit last used and apply patches.
  23. # Remove the old version that may still exist
  24. # ------------------------------------------------------------------------------
  25. printf "Downloading SeaBIOS\n"
  26. rm -rf "seabios/"
  27. # Get latest SeaBIOS
  28. # ------------------------------------------------------------------------------
  29. # download it using git
  30. git clone https://git.seabios.org/seabios.git seabios || \
  31. git clone https://review.coreboot.org/cgit/seabios.git/ seabios
  32. (
  33. # modifications are required
  34. cd "seabios/"
  35. # Reset to the last commit that was tested (we use stable releases for seabios)
  36. # ------------------------------------------------------------------------------
  37. git reset --hard 19fdcca467ad3436d68ef88899b4dcd78154a9c6
  38. )