File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- TC_DIR=" $HOME "
3
2
echo " Cloning dependencies"
4
- git clone --depth=1 https://github.com/mvaisakh/gcc-arm64 -b gcc-new $TC_DIR /arm64
5
- git clone --depth=1 https://github.com/mvaisakh/gcc-arm -b gcc-new $TC_DIR /arm
3
+ git clone --depth=1 https://github.com/kdrag0n/proton-clang clang
4
+ git clone --depth=1 https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9 gcc
5
+ git clone --depth=1 https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9 gcc32
6
6
git clone https://github.com/sm6115-dev/AnyKernel3.git --depth=1 AnyKernel
7
7
8
8
echo " Done"
9
9
KERNEL_DIR=$( pwd)
10
10
IMAGE=" ${KERNEL_DIR} /out/arch/arm64/boot/Image"
11
11
TANGGAL=$( date +" %Y%m%d-%H" )
12
12
BRANCH=" $( git rev-parse --abbrev-ref HEAD) "
13
+ PATH=" ${KERNEL_DIR} /clang/bin:${KERNEL_DIR} /gcc/bin:${KERNEL_DIR} /gcc32/bin:${PATH} "
13
14
export ARCH=arm64
14
15
export KBUILD_BUILD_USER=gagan
15
16
export KBUILD_BUILD_HOST=malvi
@@ -18,10 +19,12 @@ make O=out ARCH=arm64 vendor/bengal-perf_defconfig
18
19
19
20
# Compile plox
20
21
compile () {
21
- make -j$( nproc --all) O=out \
22
- PATH=" $TC_DIR /arm64/bin:$TC_DIR /arm/bin:$PATH " \
23
- CROSS_COMPILE=$TC_DIR /arm64/bin/aarch64-elf- \
24
- CROSS_COMPILE_ARM32=$TC_DIR /arm/bin/arm-eabi- -Wno-format Image dtb.img dtbo.img | & tee $LOG
22
+ make -j$( nproc) O=out \
23
+ ARCH=arm64 \
24
+ CC=clang \
25
+ CLANG_TRIPLE=aarch64-linux-gnu- \
26
+ CROSS_COMPILE=aarch64-linux-android- \
27
+ CROSS_COMPILE_ARM32=arm-linux-androideabi- $1 $2 $3
25
28
}
26
29
27
30
You can’t perform that action at this time.
0 commit comments