-
Notifications
You must be signed in to change notification settings - Fork 510
Expand file tree
/
Copy pathbuild-redmi-k20pro-aosp-a15-sovietstaross.yml
More file actions
141 lines (99 loc) · 4.86 KB
/
Copy pathbuild-redmi-k20pro-aosp-a15-sovietstaross.yml
File metadata and controls
141 lines (99 loc) · 4.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Build Redmi K20 Pro (Based-AOSP A15) (Soviet-Star-OSS)
on:
workflow_call:
workflow_dispatch:
env:
# Device env
DEVICE_NAME : "redmi_k20_pro"
DEVICE_CODENAME : "raphael"
CUSTOM_CMDS : "CLANG_TRIPLE=aarch64-linux-gnu-"
EXTRA_CMDS : "LLVM=1 LLVM_IAS=1"
KERNEL_SOURCE : "https://github.com/JackA1ltman/kernel_xiaomi_raphael_noksu.git"
KERNEL_BRANCH : "15.0"
CLANG_SOURCE : "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman"
CLANG_BRANCH : ""
GCC_GNU : false
GCC_64_SOURCE : ""
GCC_64_BRANCH : ""
GCC_32_SOURCE : ""
GCC_32_BRANCH : ""
DEFCONFIG_SOURCE: ""
DEFCONFIG_NAME : "raphael_defconfig"
DEFCONFIG_ORIGIN_IMAGE: ""
DEFCONFIG_FROM_BOOT: false
KERNELSU_SOURCE : ""
KERNELSU_BRANCH : ""
KERNELSU_AUTO_GET : "true"
KERNELSU_AUTO_FORK : "resukisu" # xxksu, rsuntk , next, resukisu and sukisu
SUSFS_ENABLE : true
SUSFS_FIXED : true
AK3_SOURCE : "https://github.com/SOVIET-ANDROID/AnyKernel3.git"
AK3_BRANCH : "master"
BOOT_SOURCE : ""
NEED_DTBO : false
NEED_SAFE_DTBO : false
ROM_TEXT : "based_aosp_a15"
# Other env
PYTHON_VERSION: "3" # Only 2(Ubuntu 22.04 and Ubuntu 20.04) or 3(Any OS Versions).
PACK_METHOD: "Anykernel3" # Anykernel3 need SOURCE and BRANCH, MKBOOTIMG needn't it.
PACK_KMODULES: "false" # if u want pack kernel modules (.ko) into Anykernel3.
KERNELSU_METHOD: "shell" # shell, manual and only.
PATCHES_SOURCE: "JackA1ltman/NonGKI_Kernel_Patches" # [your_name]/[your_patch] -> gooder123/NonGKI_Patcher
PATCHES_BRANCH: "mi_kernel" # [your_branch] -> main
SUSFS_FOLDER_FIXED: "k20p_aosp_sovietstar_a15" # Fill in your patch prefix directory here. Leave it blank if there isn't one. -> your_folder
SUSFS_PATCH_FIXED: "susfs_fixed" # Fill in your patches here. If there are multiple patches, please separate them with a comma. Leave it blank if there isn't one. -> patch1,patch2
REKERNEL_ENABLE: "false" # if u need Re:Kernel.
DROIDSPACES_ENABLE: "false" # if u need Droidspaces or LXC/Docker.
NOMOUNT_ENABLE: "false" # if u need NoMount.
HOOK_METHOD: "syscall" # Manual hook method -> syscall.
KERNEL_PATCH: "false" # If your kernel version is <= 4.9, you have the option of enabling the patch to patch the kernel_write and kernel_read functions.
KPM_ENABLE: "false" # Anyone devices.
KPM_INLINE: "false" # Only use it for SukiSU-Ultra.
KPM_KPATCH_NEXT: "false" # If u want hook KPatch-Next in build step.
KPM_PATCH_SOURCE: "https://raw.githubusercontent.com/SukiSU-Ultra/SukiSU_patch/refs/heads/main/kpm/patch_linux" # If u want to use KPM Inline,so you need set patch exec file source -> raw.githubusercontent.com/Test/Test/patch .
BASEBAND_GUARD_ENABLE: "false" #if u want prevent unauthorized writes to critical partitions/device nodes.
BASEBAND_GUARD_BOOT: "false" #if u want to protect boot partition.
GENERATE_DTB: "false" # if u kernel need DTB , but cannot auto generate it. (Only Anykernel3).
GENERATE_CHIP: "qcom" # only supported for qcom and mediatek.
BUILD_DEBUGGER: "false" # Output build errors.
SKIP_PATCH: "false" # Ignore errors found in Patch Debugger.
BUILD_OTHER_CONFIG: "false" # Merge config files.
MERGE_CONFIG_FILES: "vendor/debugfs.config,vendor/lahaina_QGKI.config"
FREE_MORE_SPACE: "false" # if u want get more space, enabled it.
jobs:
build-kernel:
name: Redmi K20 Pro (Based-AOSP A15) (Soviet-Star-OSS)
runs-on: ubuntu-latest # u can changed to ubuntu 22.04, and need container set ubuntu-latest
# container: archlinux/archlinux:latest # if u need use arch linux -> archlinux/archlinux:latest or ubuntu 20.04 -> ubuntu:focal
env:
CCACHE_COMPILERCHECK: "%compiler% -dumpmachine; %compiler% -dumpversion"
CCACHE_NOHASHDIR: "true"
CCACHE_HARDLINK: "true"
steps:
- name: ⏰ Checkout repository
uses: actions/checkout@v6
- name: ⌛️ Compilation environment preparation
uses: ./.github/workflows/build-env
- name: ⚙️ Get neccssary tools
uses: ./.github/workflows/build-ready
- name: 🪝 Patch Kernel of SUSFS
uses: ./.github/workflows/patch-susfs
- name: 🔗 Patch for no-kprobe
uses: ./.github/workflows/patch-no-kprobe
- name: 🪛 Extra Kernel Options
run: |
# Only ${{ env.DEVICE_NAME }} use it.
cd $GITHUB_WORKSPACE/device_kernel
# Nothing
- name: 🧰 Patch Kernel of Re:Kernel
uses: ./.github/workflows/patch-rekernel
- name: 💿 Patch Kernel of Droidspaces
uses: ./.github/workflows/patch-droidspaces
- name: 🔒 Patch Kernel of Baseband Guard
uses: ./.github/workflows/patch-baseband-guard
- name: 🚀 Build Process
uses: ./.github/workflows/build-process
- name: 🔩 Pack Process
uses: ./.github/workflows/pack-process
- name: ✏️ Upload Artifacts
uses: ./.github/workflows/upload-files