tinit.sh - arm-sdk - os build toolkit for various embedded devices
  HTML git clone https://git.parazyd.org/arm-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       tinit.sh (1355B)
       ---
            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 
           20 ## This script will setup arm-sdk and make it ready for usage.
           21 
           22 set -e
           23 
           24 git submodule update --init --recursive --checkout
           25 mkdir -p gcc
           26 cd gcc
           27 
           28 or1ktc="or1k-linux-musl"
           29 or1kurl="http://musl.cc/or1k-linux-musl-cross.tgz"
           30 
           31 wget "$or1kurl"
           32 tar xf "$(basename "$or1kurl")"
           33 mv or1k-linux-musl-cross "$or1ktc"
           34 rm -f "$(basename "$or1kurl")"
           35 
           36 cd -
           37 
           38 cat <<EOM
           39 
           40 All done! Make sure you also install the required dependencies listed in
           41 README.md. You can use the following oneliner as well:
           42 
           43 $ grep '^curl ' README.md | xargs sudo apt --yes --force-yes install
           44 EOM