Simple Distro Kit - Arm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.3 KiB

  1. #!/bin/sh
  2. # Copyright (c) 2016-2020 Dyne.org Foundation
  3. # arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org>
  4. #
  5. # This file is part of arm-sdk
  6. #
  7. # This source code 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 software 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 source code. If not, see <http://www.gnu.org/licenses/>.
  19. ## This script will setup arm-sdk and make it ready for usage.
  20. set -e
  21. git submodule update --init --recursive --checkout
  22. mkdir -p gcc
  23. cd gcc
  24. or1ktc="or1k-linux-musl"
  25. or1kurl="http://musl.cc/or1k-linux-musl-cross.tgz"
  26. wget "$or1kurl"
  27. tar xf "$(basename "$or1kurl")"
  28. mv or1k-linux-musl-cross "$or1ktc"
  29. rm -f "$(basename "$or1kurl")"
  30. cd -
  31. cat <<EOM
  32. All done! Make sure you also install the required dependencies listed in
  33. README.md. You can use the following oneliner as well:
  34. $ grep '^curl ' README.md | xargs sudo apt --yes --force-yes install
  35. EOM