Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore; skill issue #3

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

# DS-萤火虫内核适用于 Exynos9810

这是我第一次处理内核,请不要嘲笑。仅在使用 Project Startlet(OneUI 6.1)的 Starlte 上测试过,理论上适用于其他设备,但不保证。我也将脚本翻译成了中文。

从 Duhan 的 Exynos9810 Apollo 内核分叉而来
## 编译
仅在 Deepin 上测试过,但应该适用于任何基于 Debian/Ubuntu 的发行版。

```bash
git clone https://github.com/mrcxlinux/exynos9810-kernel-yhc
cd exynos9810-kernel-yhc
./apollo.sh
```
## 安装
只需将 IMG 文件刷入“boot”分区,或在 TWRP 中刷入 ZIP 文件。

## 真诚的感谢

- [@ananjaser1211](https://https://github.com/ananjaser1211)
- [@duhansysl](https://github.com/duhansysl)
- [@Florine0928](https://www.github.com/Florine0928)
- [@ExtremeXT](https://github.com/ExtremeXT)
46 changes: 23 additions & 23 deletions apollo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ CR_DTB=$CR_DIR/arch/$CR_ARCH/boot/dtb.img
# defconfig dir
CR_DEFCONFIG=$CR_DIR/arch/$CR_ARCH/configs
# Kernel Name and Version
CR_VERSION=V1.2
CR_NAME=DS-ACK
CR_VERSION=NEXT
CR_NAME=DS-萤火虫
# Thread count
CR_JOBS=$(nproc --all)
# Target Android version
CR_ANDROID=q
CR_PLATFORM=13.0.0
# Current Date
CR_DATE=$(date +%d.%m.%Y)
CR_DATE=$(date +%y%m%d)
# General init
export ANDROID_MAJOR_VERSION=$CR_ANDROID
export PLATFORM_VERSION=$CR_PLATFORM
Expand Down Expand Up @@ -232,7 +232,7 @@ fi

BUILD_IMAGE_NAME()
{
CR_IMAGE_NAME=$CR_NAME-$CR_VERSION-$CR_VARIANT-$CR_DATE
CR_IMAGE_NAME=$CR_NAME-$CR_VERSION-$CR_DATE
zver=$CR_NAME-$CR_VERSION-$CR_DATE

}
Expand Down Expand Up @@ -327,27 +327,27 @@ BUILD_OUT()
# KSU Version
KSU_VERSION=$( [ -f "drivers/kernelsu/Makefile" ] && grep -oP '(?<=-DKSU_VERSION=)[0-9]+' drivers/kernelsu/Makefile )
echo "----------------------------------------------"
echo " Kernel - $CR_IMAGE_NAME"
echo " Device - $CR_VARIANT"
echo " Compiler - $CR_COMPILER_ARG"
echo " 内核 - $CR_IMAGE_NAME"
echo " 设备 - $CR_VARIANT"
echo " 编译器 - $CR_COMPILER_ARG"
if [[ "$CR_CLEAN" =~ ^[yY]$ ]]; then
echo " Env - Clean Build"
echo " Env - 清理构建"
else
echo " Env - Dirty Build"
echo " Env - 脏构建"
fi
if [ $CR_SELINUX = "1" ]; then
echo " SELinux - Permissive"
else
echo " SELinux - Enforcing"
fi
echo " KernelSU - Version: $KSU_VERSION"
echo " KernelSU - 版本:$KSU_VERSION"
echo "----------------------------------------------"
echo "$CR_VARIANT kernel build finished."
echo "Compiled DTB Size = $sizdT Kb"
echo "Kernel Image Size = $sizT Kb"
echo "Boot Image Size = $sizkT Kb"
echo "$CR_PRODUCT/$CR_IMAGE_NAME.img Ready"
echo "Press Any key to end the script"
echo "$CR_VARIANT 内核构建完成"
echo "编译后的 DTB 大小 = $sizdT Kb"
echo "内核镜像 大小 = $sizT Kb"
echo "启动镜像 大小 = $sizkT Kb"
echo "$CR_PRODUCT/$CR_IMAGE_NAME.img 准备好了"
echo "按任意键结束脚本"
echo "----------------------------------------------"
}

Expand All @@ -356,16 +356,16 @@ BUILD_ZIMAGE()
{
echo "----------------------------------------------"
echo " "
echo "Building zImage for $CR_VARIANT"
export LOCALVERSION=-$CR_IMAGE_NAME
echo "Make $CR_CONFIG"
echo "$CR_VARIANT 构建 zImage"
export LOCALVERSION=_$CR_IMAGE_NAME
echo "编译 $CR_CONFIG"
$compile $CR_CONFIG
echo "Make Kernel with $CR_COMPILER_ARG"
echo "使用 $CR_COMPILER_ARG 编译内核"
$compile -j$CR_JOBS
if [ ! -e $CR_KERNEL ]; then
exit 0;
echo "Image Failed to Compile"
echo " Abort "
echo "镜像编译失败"
echo " 中止 "
fi
du -k "$CR_KERNEL" | cut -f1 >sizT
sizT=$(head -n 1 sizT)
Expand Down Expand Up @@ -631,7 +631,7 @@ if [ "$CR_TARGET" = "6" ]; then # Final kernel build
rm -rf sizdz
echo " "
echo "----------------------------------------------"
echo "$CR_NAME kernel build finished."
echo "$CR_NAME 内核构建完成"
echo "Compiled Package Size = $sizdz Kb"
echo "$zver.zip Ready"
echo "Press Any key to end the script"
Expand Down
Loading