-
Notifications
You must be signed in to change notification settings - Fork 16
76 lines (51 loc) · 2.21 KB
/
legacy.yml
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
name: (GCC)Kernel Builder Xiaomi 10 Ultra
on:
push:
schedule:
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout zipper
uses: actions/checkout@v2
with:
repository: lemniskett/AnyKernel3
path: zipper
- name: Integrate KernelSU
run: |
sudo apt update && sudo apt upgrade
sudo apt install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip bc
git clone https://github.com/CoolestEnoch/xiaomi-10-ultra-kernel
mv xiaomi-10-ultra-kernel source
cd source
sudo cp ./libdebuginfod.so.1 /usr/lib
sudo chmod 777 /usr/lib/libdebuginfod.so.1
echo "[+] Append kernel params to kprobes"
echo "CONFIG_KPROBES=y" >> arch/arm64/configs/vendor/cas_defconfig
echo "CONFIG_HAVE_KPROBES=y" >> arch/arm64/configs/vendor/cas_defconfig
echo "CONFIG_KPROBE_EVENTS=y" >> arch/arm64/configs/vendor/cas_defconfig
git clone https://github.com/tiann/KernelSU
cd KernelSU
git stash && git pull
cd ..
cp -r KernelSU/kernel drivers/kernelsu
echo "[+] Add kernel su driver to Makefile"
echo "obj-y += kernelsu/" >> drivers/Makefile
echo "ccflags-y += -std=gnu11" >> drivers/kernelsu/Makefile
echo "[+] Done."
cd ..
git clone https://github.com/CoolestEnoch/kernel-su-xiaomi-cas
mv kernel-su-xiaomi-cas/gcc/ ./gcc
rm -rf kernel-su-xiaomi-cas
export ARCH=arm64
export CROSS_COMPILE=$(pwd)/gcc/gcc-arm64-gcc-master/bin/aarch64-elf-
export CROSS_COMPILE_ARM32=$(pwd)/gcc/gcc-arm-gcc-master/bin/arm-eabi-
cd source
make cas_defconfig
make -j2
- name: Upload Build
uses: actions/upload-artifact@v3
with:
name: Image
path: /home/runner/work/kernelsu-xiaomi-cas-online/kernelsu-xiaomi-cas-online/source/arch/arm64/boot/Image