-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sh
executable file
·32 lines (20 loc) · 1.19 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
# Script taken from Imoseyon and modified by LorD CLockaN #
#TOOLCHAIN=/home/lord/android/system/prebuilt/linux-x86/toolchain/arm-2011/bin/
#TOOLCHAIN=/home/lord/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.5.4/bin/
#TOOLCHAIN_PREFIX=arm-eabi-
PATH=$PATH:/home/lord/source/kernels/arm-a9-eabi/bin/
export CCOMPILER=/home/lord/source/kernels/arm-a9-eabi/bin/arm-a9-eabi-
make ARCH=arm ap33_android_cpuquiet_defconfig
make -j16 ARCH=arm CROSS_COMPILE=$CCOMPILER
make ARCH=arm CROSS_COMPILE=/home/lord/source/kernels/arm-a9-eabi/bin/arm-a9-eabi- -C drivers/net/wireless/compat-wireless_R5.SP2.03 KLIB=`pwd` KLIB_BUILD=`pwd` clean -j20
make ARCH=arm CROSS_COMPILE=/home/lord/source/kernels/arm-a9-eabi/bin/arm-a9-eabi- -C drivers/net/wireless/compat-wireless_R5.SP2.03 KLIB=`pwd` KLIB_BUILD=`pwd` -j20
cp arch/arm/boot/zImage ../finished/OneXzimage;
find . -iname "*.ko" -exec cp {} ../finished/OneXmodules \;
cp -f drivers/net/wireless/compat-wireless_R5.SP2.03/net/wireless/cfg80211.ko ../finished/OneXmodules
echo "";
echo "COMPILING FINISHED!!!";
echo "";
echo "Press any key to do a \"make clean\" or CTRL+C to skip it";
read;
alias make='make -j16 ARCH=arm CROSS_COMPILE=$CCOMPILER'
make clean