forked from DooMLoRD/android_kernel_sony_apq8064
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_it
executable file
·32 lines (27 loc) · 827 Bytes
/
build_it
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
### select toolchain
## GCC 4.4.3
##CUR_TC=/home/doomlord/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
## GCC 4.6 Linaro
CUR_TC=/home/doomlord/android-toolchain-eabi-linaro-4.6-2011.10/bin/
## GCC 4.7 Linaro
##CUR_TC=/home/doomlord/android-toolchain-eabi-linaro-4.7-2013.01/bin/
### compile kernel
ARCH=arm CROSS_COMPILE=${CUR_TC}arm-eabi- make -j8
echo "checking for compiled kernel..."
if [ -f arch/arm/boot/zImage ]
then
### copy modules
mkdir -p ../final_files
cp drivers/staging/prima/prima_wlan.ko ../final_files/.
cp net/wireless/cfg80211.ko ../final_files/.
### copy zImage
cp arch/arm/boot/zImage ../final_files/.
### Stripping modules
echo "Stripping modules"
cd ../final_files/
for i in $(find . | grep .ko | grep './')
do
echo $i
${CUR_TC}arm-eabi-strip --strip-unneeded $i
done
fi