toolchain.sh 474 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . common
  3. PKG="toolchain"
  4. MARKER="$BASEDIR/.${PKG}_installed"
  5. if [ -e "$MARKER" ]; then
  6. echo "$PKG seems to be already build, remove $MARKER to rebuild"
  7. exit 0
  8. fi
  9. FILE="arm-open2x-linux-apps-gcc-4.1.1-glibc-2.3.6_i686_linux.tar.bz2"
  10. URL="http://www.open2x.org/open2x/toolchains/$FILE.zip"
  11. DOWNLOADED="$DOWNLOAD_DIR/$FILE"
  12. download "$URL" "$DOWNLOADED"
  13. execute pushd "$PREFIX"
  14. execute tar -x --strip-components=2 -f "$DOWNLOADED"
  15. execute popd
  16. touch "$MARKER"