void 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #!/usr/bin/env bash
  2. # void script: installs build dependencies for Void Linux
  3. #
  4. # Copyright (C) 2021 Caleb La Grange <thonkpeasant@protonmail.com>
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. [ "x${DEBUG+set}" = 'xset' ] && set -v
  20. set -u -e
  21. if [ $EUID -ne 0 ]; then
  22. printf "This script must be run as root\n"
  23. exit 1
  24. fi
  25. # Duplications are intentional. Please do not re-factor.
  26. #
  27. # This is so that they can moved to separate scripts.
  28. #
  29. xbps-install -y wget
  30. # For downloading source code
  31. # ------------------------------------------------------------
  32. xbps-install -y git
  33. # For Tianocore and iPXE
  34. # TODO: check whether this is the full list
  35. xbps-install -y nasm perl-LWP python subversion
  36. # For building source code:
  37. # ------------------------------------------------------------
  38. xbps-install -y base-devel
  39. # for running the crostool script (to get mrc.bin file for t440p)
  40. xbps-install -y sharutils curl parted e2fsprogs unzip
  41. # for cross-compiling ARM binaries
  42. xbps-install -y cross-arm-none-eabi-gcc
  43. # Memtest86+ build dependencies
  44. # ------------------------------------------------------------
  45. xbps-install -y base-devel python
  46. # i945-pwm build dependencies
  47. # ------------------------------------------------------------
  48. xbps-install -y base-devel perl
  49. # Coreboot build dependencies (also requires build-essential and git)
  50. # ------------------------------------------------------------
  51. xbps-install -y ncurses doxygen acpica-utils gdb flex bison base-devel git openssl gcc-ada ncurses-devel
  52. # GRUB build dependencies (also requires build-essential, bison and flex)
  53. # ------------------------------------------------------------
  54. xbps-install -y font-unifont-bdf autogen help2man base-devel bison flex dejavu-fonts-ttf texinfo rsync python3 libusb xz gawk device-mapper fuse gettext gettext-devel freetype
  55. # BucTS build dependencies (external script)
  56. # ------------------------------------------------------------
  57. xbps-install -y base-devel
  58. # Flashrom build dependencies (also requires build-essential)
  59. # ------------------------------------------------------------
  60. xbps-install -y libpciaccess pciutils zlib libftdi1 base-devel libusb
  61. # Management engine extraction dependencies
  62. # ------------------------------------------------------------
  63. xbps-install -y innoextract