@@ -347,6 +347,9 @@ runs:
347
347
sed -i 's/CONFIG_LTO=n/CONFIG_LTO=y/' "./common/arch/arm64/configs/gki_defconfig"
348
348
sed -i 's/CONFIG_LTO_CLANG_FULL=y/CONFIG_LTO_CLANG_THIN=y/' "./common/arch/arm64/configs/gki_defconfig"
349
349
sed -i 's/CONFIG_LTO_CLANG_NONE=y/CONFIG_LTO_CLANG_THIN=y/' "./common/arch/arm64/configs/gki_defconfig"
350
+ echo "CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y" >> "./common/arch/arm64/configs/gki_defconfig"
351
+ echo "CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=n" >> "./common/arch/arm64/configs/gki_defconfig"
352
+
350
353
sed -i 's/check_defconfig//' ./common/build.config.gki
351
354
tac ./common/scripts/setlocalversion | sed '0,/echo "\$res"/s//res="-${{ env.ANDROID_VER }}-OP-Wild"\;echo "\$res"\;/' | tac > ./common/scripts/setlocalversion.tmp && mv ./common/scripts/setlocalversion.tmp ./common/scripts/setlocalversion
352
355
tac ./msm-kernel/scripts/setlocalversion | sed '0,/echo "\$res"/s//res="-${{ env.ANDROID_VER }}-OP-Wild"\;echo "\$res"\;/' | tac > ./msm-kernel/scripts/setlocalversion.tmp && mv ./msm-kernel/scripts/setlocalversion.tmp ./msm-kernel/scripts/setlocalversion
@@ -461,12 +464,13 @@ runs:
461
464
MAKE_ARGS="LLVM=1 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
462
465
RUSTC=$KERNEL_PATH/prebuilts/rust/linux-x86/1.73.0b/bin/rustc \
463
466
PAHOLE=$KERNEL_PATH/prebuilts/kernel-build-tools/linux-x86/bin/pahole \
464
- LD=ld.lld HOSTLD=ld.lld KCFLAGS+=-Wno-error "
467
+ LD=ld.lld HOSTLD=ld.lld"
465
468
if [[ -v USE_LLVM_IAS ]]; then
466
469
MAKE_ARGS="LLVM_IAS=1 $MAKE_ARGS"
467
470
fi
468
- make -j$(nproc --all) O=out $MAKE_ARGS gki_defconfig || exit 1
469
- make -j$(nproc --all) O=out $MAKE_ARGS || exit 1
471
+
472
+ make -j$(nproc --all) O=out $MAKE_ARGS KCFLAGS+="-Wno-error -O2" gki_defconfig || exit 1
473
+ make -j$(nproc --all) O=out $MAKE_ARGS KCFLAGS+="-Wno-error -O2"|| exit 1
470
474
471
475
- name : Create Kernel ZIP
472
476
id : create_zip
0 commit comments