void 2.9 KB

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