File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 82
82
SUBLEVEL=$(grep -E '^SUBLEVEL = ' Makefile | awk '{print $3}')
83
83
echo "ChromeOS ARCVM Linux kernel version: $VERSION.$PATCHLEVEL.$SUBLEVEL"
84
84
echo "version=$VERSION.$PATCHLEVEL.$SUBLEVEL" >> $GITHUB_ENV
85
-
85
+
86
86
- name : Setup KernelSU
87
87
working-directory : kernel
88
88
run : |
94
94
95
95
echo "[+] Add KernelSU driver to Makefile"
96
96
DRIVER_MAKEFILE=$KERNEL_ROOT/drivers/Makefile
97
- grep -q "kernelsu" $DRIVER_MAKEFILE || echo "obj-y += kernelsu/" >> $DRIVER_MAKEFILE
97
+ DRIVER_KCONFIG=$KERNEL_ROOT/drivers/Kconfig
98
+ grep -q "kernelsu" "$DRIVER_MAKEFILE" || printf "\nobj-\$(CONFIG_KSU) += kernelsu/\n" >> "$DRIVER_MAKEFILE"
99
+ grep -q "kernelsu" "$DRIVER_KCONFIG" || sed -i "/endmenu/i\\source \"drivers/kernelsu/Kconfig\"" "$DRIVER_KCONFIG"
98
100
99
101
echo "[+] Apply KernelSU patches"
100
102
cd $KERNEL_ROOT && git apply $GITHUB_WORKSPACE/KernelSU/.github/patches/5.10/*.patch || echo "[-] No patch found"
You can’t perform that action at this time.
0 commit comments