kernel: Support switch branch or tag (#382)

This commit is contained in:
セリカ・シルフィル
2023-04-13 14:40:56 +08:00
committed by GitHub
parent 17d6f1cdf1
commit 2f67d24ec9
9 changed files with 119 additions and 3 deletions

View File

@@ -42,10 +42,24 @@ tools/bazel build --config=fast //common:kernel_aarch64_dist
## 使用 KernelSU 构建内核
如果您可以成功构建内核,那么构建 KernelSU 就很容易,在内核源代码根目录中运行命令:
如果您可以成功构建内核,那么构建 KernelSU 就很容易,根据自己的需求在内核源代码根目录中运行以下任一命令:
- 最新tag(稳定版本)
```sh
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
```
- main分支(开发版本)
```sh
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s main
```
- 指定tag(比如v0.5.2)
```sh
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.5.2
```
然后重建内核,您将获得带有 KernelSU 的内核映像!