-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sh
39 lines (25 loc) · 956 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
#!/bin/bash
#DhirajMS
#Compile script for kernel
#clean out dir
#rm -rf out
mkdir -p out
#ARCH
export ARCH=arm
#host and user
export KBUILD_BUILD_USER="DhirajMS"
export KBUILD_BUILD_HOST="Dracarys"
#get toolchain gcc-4.8
#git clone https://github.com/DhirajSurvase/GCC_4.8 gcc4.8
#export CROSS_COMPILE=/home/ubuntu/kcp/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=/home/younilban/kernel/panelli/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 -j64 -C $PWD O=$PWD/out ARCH=arm