forked from SlimRoms/kernel_lge_mako
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.sh
executable file
·31 lines (25 loc) · 820 Bytes
/
make.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
# Stupid shell script to compile kernel, nothing fancy
# Exports all the needed things Arch, SubArch and Cross Compile
export ARCH=arm
echo 'exporting Arch'
export SUBARCH=arm
echo 'exporting SubArch'
export CROSS_COMPILE=/home/prbassplayer/WIP4.4/prebuilt/linux-x86/toolchain/linaro-4.8-13.06/bin/arm-linux-gnueabihf-
#export CROSS_COMPILE=/home/prbassplayer/WIP/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
echo 'exporting Cross Compile'
# Make sure build is clean!
echo 'Cleaning build'
make clean
# Generates a new .config and exists
if [ "$1" = "config" ] ; then
echo 'Making defconfig for Mako'
make slim_mako_defconfig
exit
fi
# Exports kernel local version? Not sure yet.
#echo 'Exporting kernel version'
#export LOCALVERSION='SlimTest_1.0'
# Lets go!
echo 'Lets start!'
make -j$1