mirror of
https://github.com/Dichgrem/GKI-build.git
synced 2025-12-17 22:22:00 -05:00
style:some_name
This commit is contained in:
19
.github/workflows/build-gki-kernel.yml
vendored
19
.github/workflows/build-gki-kernel.yml
vendored
@@ -207,6 +207,7 @@ jobs:
|
|||||||
|
|
||||||
scripts/kconfig/merge_config.sh -m arch/arm64/configs/config_defconfig kernel/configs/bbr.config
|
scripts/kconfig/merge_config.sh -m arch/arm64/configs/config_defconfig kernel/configs/bbr.config
|
||||||
mv arch/arm64/configs/config_defconfig.new arch/arm64/configs/config_defconfig
|
mv arch/arm64/configs/config_defconfig.new arch/arm64/configs/config_defconfig
|
||||||
|
echo "✅ BBR patch step finished"
|
||||||
else
|
else
|
||||||
echo "⏩ Skipping BBR support (disabled)"
|
echo "⏩ Skipping BBR support (disabled)"
|
||||||
fi
|
fi
|
||||||
@@ -214,7 +215,8 @@ jobs:
|
|||||||
- name: Enable KPM support
|
- name: Enable KPM support
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ inputs.enable_kpm }}" == "true" && "${{ inputs.root_solution }}" == "sukisu" ]]; then
|
if [[ "${{ inputs.enable_kpm }}" == "true" && "${{ inputs.root_solution }}" == "sukisu" ]]; then
|
||||||
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
|
echo "✅ Enabling KPM support"
|
||||||
|
cd "$WORKDIR/$KERNEL_DIR"
|
||||||
mkdir -p kernel/configs
|
mkdir -p kernel/configs
|
||||||
printf '%s\n' \
|
printf '%s\n' \
|
||||||
'# Fragment config for enabling KPM' \
|
'# Fragment config for enabling KPM' \
|
||||||
@@ -232,9 +234,10 @@ jobs:
|
|||||||
- name: Enable ZRAM support
|
- name: Enable ZRAM support
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.enable_zram }}" = "true" ]; then
|
if [ "${{ inputs.enable_zram }}" = "true" ]; then
|
||||||
|
echo "✅ Enabling ZRAM support"
|
||||||
cd $GITHUB_WORKSPACE/kernel/
|
cd $GITHUB_WORKSPACE/kernel/
|
||||||
git clone https://github.com/ShirkNeko/SukiSU_patch.git
|
git clone https://github.com/ShirkNeko/SukiSU_patch.git
|
||||||
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
|
cd "$WORKDIR/$KERNEL_DIR"
|
||||||
|
|
||||||
echo "正在拉取ZRAM补丁"
|
echo "正在拉取ZRAM补丁"
|
||||||
cp -r ../SukiSU_patch/other/zram/lz4k/include/linux/* ./include/linux/
|
cp -r ../SukiSU_patch/other/zram/lz4k/include/linux/* ./include/linux/
|
||||||
@@ -276,7 +279,8 @@ jobs:
|
|||||||
- name: Enable SUSFS support
|
- name: Enable SUSFS support
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.enable_susfs }}" = "true" ]; then
|
if [ "${{ inputs.enable_susfs }}" = "true" ]; then
|
||||||
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
|
echo "✅ Enabling SUSFS support"
|
||||||
|
cd "$WORKDIR/$KERNEL_DIR"
|
||||||
|
|
||||||
echo "🌿 Cloning susfs4ksu repository"
|
echo "🌿 Cloning susfs4ksu repository"
|
||||||
git clone https://gitlab.com/simonpunk/susfs4ksu.git
|
git clone https://gitlab.com/simonpunk/susfs4ksu.git
|
||||||
@@ -303,11 +307,12 @@ jobs:
|
|||||||
- name: Enable SCHED support
|
- name: Enable SCHED support
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.enable_sched }}" = "true" ]; then
|
if [ "${{ inputs.enable_sched }}" = "true" ]; then
|
||||||
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
|
echo "✅ Enabling SCHED support"
|
||||||
|
cd "$WORKDIR/$KERNEL_DIR"
|
||||||
git clone https://github.com/HanKuCha/sched_ext.git
|
git clone https://github.com/HanKuCha/sched_ext.git
|
||||||
cp -r ./sched_ext/* ./kernel/sched
|
cp -r ./sched_ext/* ./kernel/sched
|
||||||
rm -rf ./sched_ext/.git
|
rm -rf ./sched_ext/.git
|
||||||
echo "✅ SCHED 应用成功"
|
echo "✅ SCHED patch step finished"
|
||||||
cd ./kernel/sched
|
cd ./kernel/sched
|
||||||
ls -la
|
ls -la
|
||||||
else
|
else
|
||||||
@@ -317,8 +322,8 @@ jobs:
|
|||||||
- name: Enable LSM_BBG support
|
- name: Enable LSM_BBG support
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.enable_lsm }}" = "true" ]; then
|
if [ "${{ inputs.enable_lsm }}" = "true" ]; then
|
||||||
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
|
cd "$WORKDIR/$KERNEL_DIR"
|
||||||
echo "正在启用内核级基带保护支持…"
|
echo "✅ Enabling LSM_BBG support"
|
||||||
wget -O- https://github.com/vc-teahouse/Baseband-guard/raw/main/setup.sh | bash
|
wget -O- https://github.com/vc-teahouse/Baseband-guard/raw/main/setup.sh | bash
|
||||||
sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/landlock/landlock,baseband_guard/ } }' security/Kconfig
|
sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/landlock/landlock,baseband_guard/ } }' security/Kconfig
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user