-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild_it
executable file
·32 lines (27 loc) · 1.35 KB
/
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
ARCH=arm CROSS_COMPILE=~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi- make -j8
echo "checking for compiled kernel..."
if [ -f arch/arm/boot/zImage ]
then
### copy zImage
cp arch/arm/boot/zImage ../final_files/.
cp drivers/staging/prima/wlan.ko ../final_files/prima_wlan.ko
cp net/wireless/cfg80211.ko ../final_files/.
cp drivers/exfat/exfat_core.ko ../final_files/.
cp drivers/exfat/exfat_fs.ko ../final_files/.
cp drivers/hid/hid-sony.ko ../final_files/.
~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip --strip-unneeded ../final_files/prima_wlan.ko
~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip --strip-unneeded ../final_files/cfg80211.ko
~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip --strip-unneeded ../final_files/exfat_core.ko
~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip --strip-unneeded ../final_files/exfat_fs.ko
~/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip --strip-unneeded ../final_files/hid-sony.ko
echo "DONE"
fi