forked from tbalden/android_kernel_oneplus_sm8250
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_pro.sh
executable file
·42 lines (34 loc) · 915 Bytes
/
build_pro.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
41
42
#!/bin/bash
echo
echo "Clean Build Directory"
echo
#make clean && make mrproper
#rm -rf ./out_pro
echo
echo "Issue Build Commands"
echo
mkdir -p out_pro
export ARCH=arm64
export SUBARCH=arm64
BASE_PATH=/home/android/pixel
EXT_UTILS=$BASE_PATH/wahoo-kernel-tools/bin
export CLANG_PATH=$BASE_PATH/clang-10/bin
export PATH=${CLANG_PATH}:${EXT_UTILS}:${PATH}
export DTC_EXT=$EXT_UTILS/dtc-aosp
export CLANG_TRIPLE=aarch64-linux-gnu-
export CROSS_COMPILE=$BASE_PATH/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export CROSS_COMPILE_ARM32=$BASE_PATH/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
export LD_LIBRARY_PATH=$BASE_PATH/clang-10/lib:$LD_LIBRARY_PATH
echo "Generating binary conversions"
cd binaries
./convert
cd ..
echo
echo "Set DEFCONFIG"
echo
make CC="clang" O=out_pro cleanslate_p_defconfig
#cleanslate_defconfig
echo
echo "Build The Good Stuff"
echo
make CC="clang" O=out_pro -j4