GithubHelp home page GithubHelp logo

kernelsu-action's Introduction

KernelSU Action

使用 Github Actions 编译集成 KernelSU 的内核

并定时检测 KernelSU 新版本,有则编译新内核

使用

本仓库用于编译 小米 8 (dipper)PixelExperience 内核

如需编译其他内核:

  1. Fork 本仓库,修改 配置文件env 部分

  2. 运行编译:在 Actions 页面,点击左侧 Check and Build,再点击右侧 Run workflow 按钮

  3. 若编译成功,Releases 页面可下载 boot.zip,在 Recovery 下刷入即可

参考配置

本例:小米 8 (dipper) PixelExperience 13

https://github.com/PixelExperience-Devices/kernel_xiaomi_polaris/tree/thirteen

env:
  kernel_repository: PixelExperience-Devices/kernel_xiaomi_polaris
  kernel_branch: thirteen
  device: dipper
  clang_version: r487747c
  defconfig: |
    dipper_defconfig
  kernel_patch: |
    support-umount-modules-kernel.patch
  kernelsu_patch: |
    support-umount-modules-kernelsu.patch

参数

defconfig

在机器内核仓库的 arch/arm64/configs 文件夹能找到机器的 defconfig


clang_version

只能填写以下 AOSP Clang 版本号,可能需要尝试不同的版本号才能成功编译

AOSP Clang 基于 Clang 最兼容的内核
r365631c 9 4.4 4.9
r383902 11 4.14
r416183b 12 4.19 5.4
r450784e 14 5.10
r487747c 17 5.15 6.1

若想使用官方 Clang 编译,则改成填写官方 Clang 版本号,例如 17


kernel_patch 和 kernelsu_patch

分别是应用到 内核KernelSU 的补丁文件列表,补丁文件需放在 patches 文件夹

补丁详细说明: tiann/KernelSU#955

如果 KernelSU 功能正常,不要 添加补丁

kernelsu-action's People

Contributors

bin456789 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.