debian 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #!/usr/bin/env sh
  2. # ubuntu2004 script: installs build dependencies for Ubuntu 20.04
  3. #
  4. # Copyright (C) 2014, 2015, 2021 Leah Rowe <info@minifree.org>
  5. # Copyright (C) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
  6. # Copyright (C) 2022 Ferass El Hafidi <vitali64pmemail@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, version 3 of the License.
  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. set -e
  21. if [ "$(id -u)" -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. apt-get -y install wget
  30. # For downloading source code
  31. # ------------------------------------------------------------
  32. apt-get -y install git
  33. # For Tianocore and iPXE
  34. # TODO: check whether this is the full list
  35. apt-get -y install uuid-dev nasm
  36. # For building source code:
  37. # ------------------------------------------------------------
  38. apt-get -y install build-essential
  39. # for running the crostool script (to get mrc.bin file for t440p)
  40. apt-get -y install sharutils curl parted e2fsprogs unzip
  41. # to use the right software versions and links for compiling
  42. apt-get -y install pkg-config
  43. # for cross-compiling ARM binaries
  44. apt-get -y install gcc-arm-linux-gnueabi
  45. [ "$(uname -i)" = x86_64 ] || [ "$(uname -m)" = x86_64 ]
  46. arch=${?}
  47. # For cross-compiling i686 target on x86_64 host.
  48. if [ "${arch}" -eq 0 ]; then
  49. apt-get -y install gcc-multilib libc6-i386 libc6-dev-i386
  50. apt-get -y install lib32stdc++6 g++-multilib dh-autoreconf
  51. # recommended, but not sure what for:
  52. apt-get -y install lib32tinfo-dev
  53. fi
  54. # Memtest86+ build dependencies
  55. # ------------------------------------------------------------
  56. apt-get -y install build-essential python3
  57. # i945-pwm build dependencies
  58. # ------------------------------------------------------------
  59. apt-get -y install build-essential perl
  60. # u-boot needed this
  61. apt-get -y install python3-setuptools
  62. # Coreboot build dependencies (also requires build-essential and git)
  63. # ------------------------------------------------------------
  64. apt-get -y install libncurses5-dev doxygen iasl gdb flex bison build-essential git libssl-dev gnat python-is-python3
  65. # For cross-compiling i686 target on x86_64 host.
  66. [ "${arch}" -eq 0 ] && apt-get -y install lib32ncurses5-dev
  67. # GRUB build dependencies (also requires build-essential, bison and flex)
  68. # ------------------------------------------------------------
  69. apt-get -y install fonts-unifont libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev libfont-freetype-perl automake autotools-dev build-essential bison flex libfuse-dev liblzma-dev gawk libdevmapper-dev libtool libfreetype6-dev gettext
  70. apt-get -y install unifont
  71. # U-Boot build dependencies
  72. # -------------------------
  73. apt-get -y install bc bison build-essential device-tree-compiler efitools flex libfdt-dev liblz4-tool libgnutls28-dev libncurses-dev libpython3-dev libsdl2-dev libssl-dev lz4 lzma lzma-alone openssl pkg-config python3 python3-distutils python3-pkg-resources python3-pycryptodome python3-pyelftools swig uuid-dev
  74. # BucTS build dependencies (external script)
  75. # ------------------------------------------------------------
  76. apt-get -y install build-essential
  77. # Flashrom build dependencies (also requires build-essential)
  78. # ------------------------------------------------------------
  79. apt-get -y install libpci-dev pciutils zlib1g-dev libftdi-dev build-essential libusb-1.0-0-dev libusb-1.0 libusb-1.0-0-dev libusb-dev
  80. # For cross-compiling i686 target on x86_64 host.
  81. [ "${arch}" -eq 0 ] && apt-get -y install lib32z1-dev
  82. # Blobs building dependencies (for me)
  83. # ------------------------------------------------------------
  84. apt-get -y install innoextract p7zip p7zip-full