From 427dcc5f2e0f967314142e3debdf71a545a863c9 Mon Sep 17 00:00:00 2001 From: UtsavBalar1231 Date: Mon, 3 Aug 2020 20:18:52 +0530 Subject: [PATCH] kernel: update build tools Signed-off-by: UtsavBalar1231 --- README.md | 7 +++---- build-lto.sh | 15 +++++++++------ build.sh | 12 ++++++------ update | 10 ++++++++++ updatedefconfig | 5 +++-- 5 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 update diff --git a/README.md b/README.md index 5ef116b07359..d8ba802aed14 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ -# iMMENSITY KERNAL for RedmiK20pro / Mi9Tpro +# IMMENSiTY KERNAL for Redmi K20pro / Mi9Tpro ![logo](https://github.com/UtsavBalar1231/xda-stuff/raw/master/immensity-new.png "logo here") -> Based on the Qualcomm AUTO tag **LE.UM.4.2.1.r1-02600-QCS404.0** -> Merged AOSP kernel_common/android-4.14-stable [4.14.185] -> Current CAF tag: **LE.UM.4.1.1.r1-00300-sa515m** +> Merged AOSP android-4.14-stable [4.14.192] +> Latest CAF tag: **LE.UM.3.2.3-45100-SA2150p** diff --git a/build-lto.sh b/build-lto.sh index a4276c643f81..2b4268b4de10 100644 --- a/build-lto.sh +++ b/build-lto.sh @@ -6,14 +6,14 @@ export KBUILD_BUILD_HOST=CuntsSpace make ARCH=arm64 \ O=${OUT_DIR} \ raphael_defconfig \ - -j4 + -j8 scripts/config --file ${OUT_DIR}/.config \ -e LTO \ -e LTO_CLANG \ + -e SHADOW_CALL_STACK \ -e TOOLS_SUPPORT_RELR \ - -e LD_LLD \ - -e LLVM_POLLY + -e LD_LLD cd ${OUT_DIR} make O=${OUT_DIR} \ @@ -24,17 +24,20 @@ cd ../ PATH=/home/utsavthecunt/proton-clang/bin/:$PATH make ARCH=arm64 \ - O=out \ + O=${OUT_DIR} \ CC="ccache clang" \ + LLVM_IAS=1 \ LD="ld.lld" \ AR="llvm-ar" \ NM="llvm-nm" \ OBJCOPY="llvm-objcopy" \ OBJDUMP="llvm-objdump" \ + OBJSIZE="llvm-size" \ + READELF="llvm-readelf" \ STRIP="llvm-strip" \ CLANG_TRIPLE="aarch64-linux-gnu-" \ CROSS_COMPILE="aarch64-linux-gnu-" \ CROSS_COMPILE_ARM32="arm-linux-gnueabi-" \ - -j4 + -j8 -rm out/.version +rm ${OUT_DIR}/.version diff --git a/build.sh b/build.sh index 89d689de1e03..0ddef5fe0729 100644 --- a/build.sh +++ b/build.sh @@ -6,14 +6,14 @@ export KBUILD_BUILD_HOST=CuntsSpace make ARCH=arm64 \ O=${OUT_DIR} \ raphael_defconfig \ - -j4 + -j8 scripts/config --file ${OUT_DIR}/.config \ -d LTO \ -d LTO_CLANG \ + -e SHADOW_CALL_STACK \ -e TOOLS_SUPPORT_RELR \ - -e LD_LLD \ - -e LLVM_POLLY + -e LD_LLD cd ${OUT_DIR} make O=${OUT_DIR} \ @@ -24,7 +24,7 @@ cd ../ PATH=/home/utsavthecunt/proton-clang/bin/:$PATH make ARCH=arm64 \ - O=out \ + O=${OUT_DIR} \ CC="ccache clang" \ LD="ld.lld" \ AR="llvm-ar" \ @@ -35,6 +35,6 @@ make ARCH=arm64 \ CLANG_TRIPLE="aarch64-linux-gnu-" \ CROSS_COMPILE="aarch64-linux-gnu-" \ CROSS_COMPILE_ARM32="arm-linux-gnueabi-" \ - -j4 + -j8 -rm out/.version +rm ${OUT_DIR}/.version diff --git a/update b/update new file mode 100644 index 000000000000..9f478d970f58 --- /dev/null +++ b/update @@ -0,0 +1,10 @@ +#!/bin/bash +OUT_DIR=out/ + +make ARCH=arm64 \ + O=${OUT_DIR} \ + raphael_defconfig \ + -j$(nproc --all) + +mv out/.config arch/arm64/configs/raphael_defconfig +git diff diff --git a/updatedefconfig b/updatedefconfig index 95b6ff52c022..b24306bf40ba 100644 --- a/updatedefconfig +++ b/updatedefconfig @@ -4,9 +4,10 @@ OUT_DIR=out/ make ARCH=arm64 \ O=${OUT_DIR} \ raphael_defconfig \ - -j4 + -j8 cp ${OUT_DIR}/.config arch/arm64/configs/raphael_defconfig -git add arch/ +git add arch/arm64/configs/raphael_defconfig + git commit -s -m "ARM64: configs: raphael: Update defconfig"