forked from darchstar/htc-kernel-heroc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
make-kernel.sh
executable file
·31 lines (28 loc) · 1017 Bytes
/
make-kernel.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
#!/bin/bash
[ -z $ANDROID ] && ANDROID=/media/android
me=`basename $0`
CCOMPILER=~/android-cm/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
export CCOMPILER
echo "Using $CCOMPILER"
if [[ "${1}" == "DC" ]]
then
make ARCH=arm CROSS_COMPILE=$CCOMPILER UncappedStable_defconfig
else
if [[ "${1}" == "MC" ]]
then
make ARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig
else
if [[ "${1}" == "K" ]]
then
make ARCH=arm CROSS_COMPILE=$CCOMPILER ${2} -j`grep 'processor' /proc/cpuinfo | wc -l`
else
echo "Usage: "
echo " ANDROID=/path/to/android/ ${me} <action>"
echo
echo " Supported Actions: "
echo " MC - Menuconfig "
echo " DC - Default Config "
echo " K - Kernel"
fi
fi
fi