forked from jtanx/rpix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·29 lines (22 loc) · 974 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -ex
sudo apt-get -y install autoconf automake bison build-essential \
diffutils flex gawk git gperf help2man make patch libncurses5-dev \
texinfo wget xz-utils python python3 unzip libtool libtool-bin \
aria2
aria2c -x 8 https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%2010.1.0/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204/cross-gcc-10.1.0-pi_3%2B.tar.gz/download
tar axf cross-gcc-10.1.0-pi_3+.tar.gz
sudo mkdir -p /opt
sudo mv cross-pi-gcc-10.1.0-2 /opt
#wtf
temp="${PATH%\"}"
temp="${temp#\"}"
export PATH="${temp}:/opt/cross-pi-gcc-10.1.0-2/bin/"
git clone https://github.com/egtvedt/crosstool-ng && cd crosstool-ng && git checkout add-gcc-9.3-and-10.2-binutils-2.35 \
&& ./bootstrap && cd .. && pushd crosstool-ng && \
./configure && \
make -j4 && \
sudo make install && \
popd
ct-ng build
tar acf x-tools.tar.xz ~/x-tools