diff --git a/arch/arm64/configs/santoni_defconfig b/arch/arm64/configs/santoni_defconfig index 26dc46a4eed3..568ccefd89c4 100644 --- a/arch/arm64/configs/santoni_defconfig +++ b/arch/arm64/configs/santoni_defconfig @@ -43,7 +43,7 @@ CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set -CONFIG_LOCALVERSION="-Okami" +CONFIG_LOCALVERSION="-Okami-v1.0" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y diff --git a/build.sh b/build.sh index b8e9501fabd8..be25086c33f4 100755 --- a/build.sh +++ b/build.sh @@ -130,10 +130,10 @@ else fi # Get current kernel version -LOUP_VERSION=$(head -n3 Makefile | sed -E 's/.*(^\w+\s[=]\s)//g' | xargs | sed -E 's/(\s)/./g') +LOUP_VERSION=$(cat .config | grep -P "^(CONFIG_LOCALVERSION)" | grep -oP "(\d+\.)?(\d+\.)?(\*|\d+)") echo -e "\n\n> Packing Loup Kernel v$LOUP_VERSION\n\n" # Pack the kernel as a flashable TWRP zip. Nougat Edition -$LOUP_WORKING_DIR/AnyKernel2/build.sh $LOUP_VERSION N +$LOUP_WORKING_DIR/AnyKernel2/build.sh $LOUP_VERSION N Ōkami end=$SECONDS duration=$(( end - start ))