Skip to content

Commit d6e3d38

Browse files
committed
build.sh: Simplify compiling flags
Depend on XSans0/kernel_xiaomi_vayu@a17c012 Use LLVM=1 instead of including all the extra kernel flags. Signed-off-by: XSans0 <xsansdroid@gmail.com>
1 parent 2478f13 commit d6e3d38

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

build.sh

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ KERNEL_DTB="$KERNEL_DIR/out/arch/arm64/boot/dts/qcom/sm8150-v2.dtb"
5353
KERNEL_LOG="$KERNEL_DIR/out/log-$(TZ=Asia/Jakarta date +'%H%M').txt"
5454
AK3_DIR="$KERNEL_DIR/AK3"
5555
CLANG_DIR="$HOME_DIR/clang"
56-
PrefixDir="$CLANG_DIR/bin/"
5756
KBUILD_COMPILER_STRING="$("${CLANG_DIR}"/bin/clang --version | head -n 1 | sed -e 's/ */ /g' -e 's/[[:space:]]*$//')"
5857
ARM64="aarch64-linux-gnu-"
5958
ARM32="arm-linux-gnueabi-"
@@ -121,20 +120,10 @@ start_msg
121120

122121
make O=out "$DEVICE"_defconfig
123122
make -j"$CORES" O=out \
124-
HOSTCC="$PrefixDir"clang \
125-
HOSTCXX="$PrefixDir"clang++ \
126-
CC="$PrefixDir"clang \
127-
LD="$PrefixDir"ld.lld \
128-
AR="$PrefixDir"llvm-ar \
129-
NM="$PrefixDir"llvm-nm \
130-
OBJCOPY="$PrefixDir"llvm-objcopy \
131-
OBJDUMP="$PrefixDir"llvm-objdump \
132-
READELF="$PrefixDir"llvm-readelf \
133-
STRIP="$PrefixDir"llvm-strip \
123+
LLVM=1 \
134124
CLANG_TRIPLE="$TRIPLE" \
135125
CROSS_COMPILE="$ARM64" \
136-
CROSS_COMPILE_COMPAT="$ARM32" \
137-
LLVM=1 2>&1 | tee "$KERNEL_LOG"
126+
CROSS_COMPILE_COMPAT="$ARM32" 2>&1 | tee "$KERNEL_LOG"
138127

139128
# End compile
140129
if [[ -f "$KERNEL_IMG" ]]; then

0 commit comments

Comments
 (0)