-
Notifications
You must be signed in to change notification settings - Fork 29
/
build
executable file
·24 lines (21 loc) · 858 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
cpus=$(grep "^processor" /proc/cpuinfo | wc -l)
rm -rf arch/arm/boot/modules
make mrproper -j16
make ARCH=arm connect_defconfig
ARCH=arm
ARCH=arm CROSS_COMPILE="/media/playfulgod/Android1/CM10/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" make -j16
#ARCH=arm CROSS_COMPILE="/media/playfulgod/Android1/CM10/prebuilts/gcc/linux-x86/arm/linaro-4.7/bin/arm-eabi-"
#ARCH=arm CROSS_COMPILE=/media/playfulgod/Android1/CM10/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make -j16
# These move files to easier locations
mkdir arch/arm/boot/modules
find -name '*.ko' -exec cp -av {} arch/arm/boot/modules/ \;
if [ -f arch/arm/boot/zImage ]; then
echo
echo "Plague has been compiled!!! You can find it in arch/arm/boot/zImage"
echo
else
echo
echo "Kernel did not compile, please check for errors!!"
echo
fi