forked from larixer/toolchain.rk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetandpatch.sh
More file actions
executable file
·48 lines (43 loc) · 1.26 KB
/
getandpatch.sh
File metadata and controls
executable file
·48 lines (43 loc) · 1.26 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
mkdir -p downloads
mkdir -p src
if [ ! -d src/kernel-2.6.33 ]; then
cd downloads
echo "Downloading LG Hom Bot Linux Kernel Project"
wget -qc --show-progress https://github.com/vlasenko/kernel.rk/archive/master.zip
unzip -qu master.zip
cd kernel.rk-master
./make_kernel.sh
mv kernel-2.6.33 ../../src
cd ../..
for p in patches/kernel-2.6.33/*; do
patch -g0 --fuzz=1 -p0 -f -d src < $p
done
fi
if [ ! -d src/binutils-2.20.1 ]; then
cd downloads
echo "Downloading GNU Binutils"
wget -qc --show-progress https://ftp.gnu.org/gnu/binutils/binutils-2.20.1a.tar.bz2
tar xf binutils-2.20.1a.tar.bz2 -C ../src
cd ..
fi
if [ ! -d src/glibc-2.5 ]; then
cd downloads
echo "Downloading Glibc"
wget -qc --show-progress https://ftp.gnu.org/pub/gnu/glibc/glibc-2.5.tar.bz2
wget -qc --show-progress https://ftp.gnu.org/pub/gnu/glibc/glibc-ports-2.5.tar.bz2
tar xf glibc-2.5.tar.bz2 -C ../src
tar xf glibc-ports-2.5.tar.bz2 -C ../src
mv ../src/glibc-ports-2.5 ../src/glibc-2.5/ports
cd ..
for p in patches/glibc-2.5/*; do
patch -g0 --fuzz=1 -p0 -f -d src < $p
done
fi
if [ ! -d src/gcc-4.4.3 ]; then
cd downloads
echo "Downloading GCC"
wget -qc --show-progress https://ftp.gnu.org/gnu/gcc/gcc-4.4.3/gcc-4.4.3.tar.bz2
tar xf gcc-4.4.3.tar.bz2 -C ../src
cd ..
fi