fedora35 2.9 KB

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