fedora35 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. #
  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. [ "x${DEBUG+set}" = 'xset' ] && set -v
  21. set -u -e
  22. if [ $EUID -ne 0 ]; then
  23. printf "This script must be run as root\n"
  24. exit 1
  25. fi
  26. # Duplications are intentional. Please do not re-factor.
  27. #
  28. # This is so that they can moved to separate scripts.
  29. #
  30. dnf -y install wget
  31. # For downloading source code
  32. # ------------------------------------------------------------
  33. dnf -y install git
  34. # For building the documentation
  35. # ------------------------------------------------------------
  36. dnf -y install pandoc
  37. # For Tianocore and iPXE
  38. # TODO: check whether this is the full list
  39. dnf -y install nasm perl-libwww-perl python2 subversion
  40. # For building source code:
  41. # ------------------------------------------------------------
  42. dnf -y install gcc
  43. # for running the crostool script (to get mrc.bin file for t440p)
  44. dnf -y install sharutils curl parted e2fsprogs unzip
  45. # for cross-compiling ARM binaries
  46. dnf -y install arm-none-eabi-gcc-cs
  47. # Memtest86+ build dependencies
  48. # ------------------------------------------------------------
  49. dnf -y install gcc python2
  50. # i945-pwm build dependencies
  51. # ------------------------------------------------------------
  52. dnf -y install gcc perl
  53. # Coreboot build dependencies (also requires build-essential and git)
  54. # ------------------------------------------------------------
  55. dnf -y install gcc-gnat ncurses-devel doxygen acpica-tools gdb flex bison gcc git openssl-devel gprbuild bzip2
  56. # GRUB build dependencies (also requires build-essential, bison and flex)
  57. # ------------------------------------------------------------
  58. 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
  59. # BucTS build dependencies (external script)
  60. # ------------------------------------------------------------
  61. dnf -y install gcc
  62. # Flashrom build dependencies (also requires build-essential)
  63. # ------------------------------------------------------------
  64. dnf -y install pciutils-devel zlib-devel libftdi-devel gcc libusb-devel