From e7abf019b0903ff78b7bb56b30dbeb3a54d790c4 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 7 Aug 2016 17:44:42 +0200 Subject: [PATCH] Added script to install cross-compiler for ARM (Raspberry) --- .../aria2-arm-rbpi-gnu-linux-cross-tools | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 build-scripts/gnu-linux-arm-rbpi-config/aria2-arm-rbpi-gnu-linux-cross-tools diff --git a/build-scripts/gnu-linux-arm-rbpi-config/aria2-arm-rbpi-gnu-linux-cross-tools b/build-scripts/gnu-linux-arm-rbpi-config/aria2-arm-rbpi-gnu-linux-cross-tools new file mode 100755 index 0000000..acad6e3 --- /dev/null +++ b/build-scripts/gnu-linux-arm-rbpi-config/aria2-arm-rbpi-gnu-linux-cross-tools @@ -0,0 +1,28 @@ +#!/bin/bash + +#IMPORTANT: Require install make binutils autoconf automake autotools-dev +# libtool pkg-config git curl dpkg-dev autopoint libcppunit-dev +# libxml2-dev libgcrypt11-dev lzip wget unzip + +#COMPILER AND PATH +PREFIX=/opt/aria2-i386/build_libs +C_COMPILER="gcc" +CXX_COMPILER="g++" + +#CHECK TOOL FOR DOWNLOAD + aria2c --help > /dev/null + if [ "$?" -eq 0 ] ; then + DOWNLOADER="aria2c --check-certificate=false -o tools-master.zip" + else + DOWNLOADER="wget -c -O tools-master.zip" + fi + +#BUILD TOOLS FOR RASPBERRY + + mkdir -p /opt/aria2-arm-rbpi/tools + cd /tmp/ + $DOWNLOADER https://codeload.github.com/raspberrypi/tools/zip/master + unzip tools-master.zip + mv tools-master/arm-bcm2708 /opt/aria2-arm-rbpi/tools + rm -rf tools-master + rm tools-master.zip