get_external_dependencies.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/bin/bash
  2. set -e -x
  3. function printhelp {
  4. echo ""
  5. echo "Example Usage: "
  6. echo "$0 getrootfs"
  7. echo "$0 getfutility"
  8. echo "$0 getkernel"
  9. echo "$0 get all"
  10. echo ""
  11. }
  12. function getrootfs {
  13. # get the rootfs tar
  14. # you can check https://wiki.parabola.nu/Get_Parabola for newer versions and to verify the gpg key
  15. wget -c https://repo.parabola.nu/iso/systemd-cli-2018-02-06/parabola-systemd-cli-armv7h-tarball-2018-02-06.tar.gz
  16. wget -c https://repo.parabola.nu/iso/systemd-cli-2018-02-06/parabola-systemd-cli-armv7h-tarball-2018-02-06.tar.gz.sig
  17. wget -c https://repo.parabola.nu/iso/systemd-cli-2018-02-06/SHA512SUMS
  18. sha512sum -c SHA512SUMS
  19. gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 0x4B745536
  20. gpg --verify parabola-systemd-cli-armv7h-tarball-2018-02-06.tar.gz.sig
  21. }
  22. function getfutility {
  23. # we need the futility tool from vboot-utils
  24. git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference
  25. cd vboot_reference
  26. git checkout 5c904692b5c3279b3258deaf98a65336f62d1df8
  27. make
  28. cd ..
  29. }
  30. function getkernel {
  31. # get the parabola kernel
  32. git clone --depth 1 git://git.parabola.nu/abslibre.git
  33. cp -r abslibre/libre/linux-libre .
  34. cd linux-libre
  35. makepkg --allsource
  36. }
  37. function getall {
  38. getrootfs
  39. getfutility
  40. getkernel
  41. }
  42. if [ x"$1" = 'x' ] || [ $1 = 'help' ]; then
  43. printhelp
  44. else
  45. $1
  46. fi