forked from whatawurst/android_kernel_sony_msm8998
/
build-poplar.sh
46 lines (37 loc) · 858 Bytes
/
build-poplar.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
43
44
45
46
echo
echo "Setup"
echo
mkdir -p out
export ARCH=arm64
export SUBARCH=arm64
make O=out clean
make O=out mrproper
echo
echo "Issue Build Commands"
echo
export CLANG_PATH=/home/andrea/android/proton-clang/bin
export PATH=${CLANG_PATH}:${PATH}
export CROSS_COMPILE=aarch64-linux-gnu-
export CROSS_COMPILE_ARM32=arm-linux-gnueabi-
echo
echo "Set DEFCONFIG"
echo
make CC=clang O=out lineage-msm8998-yoshino-poplar_dsds_defconfig
echo
echo "Build The Good Stuff"
echo
make CC=clang O=out -j$(nproc --all)
echo
echo "Making flashable zip"
echo
echo
echo "Clean up"
echo
rm ./AnyKernel3/poplar/Pop_kernel-poplar-R-rx-x-EAS.zip
rm ./AnyKernel3/poplar/Image.gz-dtb
echo
echo "copying new files"
echo
cp ./out/arch/arm64/boot/Image.gz-dtb ./AnyKernel3/poplar/
cd ./AnyKernel3/poplar/
zip -r9 Pop_kernel-poplar-R-rx-x-EAS.zip * -x .git README.md *placeholder