-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
40 lines (26 loc) · 948 Bytes
/
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
33
34
35
36
37
38
39
40
#!/bin/bash
#DhirajMS
#Compile script for kernel
#clean out dir
#rm -rf out
mkdir -p out
#ARCH
export ARCH=arm
export MTK_PLATFORM=mt6735
#host and user
export KBUILD_BUILD_USER="DhirajMS"
export KBUILD_BUILD_HOST="Treble-A158"
#get toolchain gcc-4.8
#git clone https://github.com/DhirajSurvase/GCC_4.8 gcc4.8
#export CROSS_COMPILE=$PWD/gcc4.8/bin/arm-eabi-
#get toolchain gcc-4.9
#git clone https://github.com/DhirajSurvase/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9 gcc4.9
export CROSS_COMPILE=$PWD/gcc4.9/bin/arm-linux-androideabi-
#get toolchain gcc-gnu-7.x
#git clone https://github.com/nathanchance/gcc-prebuilts -b arm-gnu-7.x arm-gnu-7.x
#export CROSS_COMPILE=/home/younilban/kernel/panelli/arm-gnu-7.x/bin/arm-gnu-linux-androideabi-
#Defconfig for Moto C plus
#make -C $PWD O=$PWD/out ARCH=arm A158_defconfig
make -C $PWD O=$PWD/out ARCH=arm A158_defconfig
#CompileNow
make -j2 -C $PWD O=$PWD/out ARCH=arm