forked from project-voodoo/linux_gt-i9000
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sh
executable file
·49 lines (38 loc) · 1.24 KB
/
build.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Script to build for the captivate and zip the package.
# Written by Evan alias ytt3r
# modified by kodos96
if ! [ -e .config ]; then
make $1
fi
# Linaro Android 4.5 (GCC 4.5.4) toolchain - http://www.linaro.org
export CROSS_COMPILE="/opt/toolchains/android-toolchain-eabi-4.5/bin/arm-eabi-"
export KBUILD_BUILD_VERSION="0.5.1-RC1-talon-dev"
#export LOCALVERSION="-I9000XWJVB-CL118186"
#export LOCALVERSION="-I9000XWJVH-CL184813"
#export LOCALVERSION="-I9000XXJVP-CL264642"
#export LOCALVERSION="-I9000XXJVQ-CL281085"
#export LOCALVERSION="-I9000XXJVR-CL425308"
#export LOCALVERSION="-I9000XXJVS-CL565837"
export LOCALVERSION="-I9000XXJVT-CL617736"
export INSTALL_MOD_PATH=./mod_inst
make modules -j`grep 'processor' /proc/cpuinfo | wc -l`
make modules_install
if [ -e ./usr/initrd_files/lib/modules ]; then
rm -rf ./usr/initrd_files/lib/modules
fi
mkdir ./usr/initrd_files/lib/modules
for i in `find mod_inst -name "*.ko"`; do
cp $i ./usr/initrd_files/lib/modules/
done
rm -rf ./mod_inst
unzip ./usr/prebuilt_ko.zip -d ./usr/initrd_files/lib/modules/
cd drivers/misc/samsung_modemctl
make
cd ../../..
make -j`grep 'processor' /proc/cpuinfo | wc -l`
cp arch/arm/boot/zImage releasetools
cd releasetools
rm -f *.zip
zip -r Talon *
cd ..
echo "Finished."