Skip to content

Commit

Permalink
Add patches
Browse files Browse the repository at this point in the history
  • Loading branch information
DataEraserC committed Dec 9, 2023
1 parent 320c772 commit 208eeea
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/Lineage20_pstar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ jobs:
cd $GITHUB_WORKSPACE/kernel_workspace
git clone ${{ env.KERNEL_SOURCE }} -b ${{ env.KERNEL_SOURCE_BRANCH }} android-kernel --depth=1
- name: Apply Patches
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
echo "------------ Patches for Remove Kernel Validation ------------"
find arch/arm64/configs/vendor/ -type f -name "*_defconfig" -exec sh -c 'export defconfig_path={} && sed "s@<device_defconfig>@$defconfig_path@g" patches/general_defconfig.patch | patch -p1 ' \;
patch -p1 < patches/module.patch
echo "------------ Patches for remove warning ----------------------"
patch -p1 < patches/nowarnings.patch
# echo "------------ Patches for lxc and docker ----------------------"
# patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch
- name: Download source boot image
if: env.BUILD_BOOT_IMG == 'true'
run: |
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/Lineage20_pstar_docker_lxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,17 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
git clone ${{ env.KERNEL_SOURCE }} -b ${{ env.KERNEL_SOURCE_BRANCH }} android-kernel --depth=1
(cd android-kernel && patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch && patch -p1 < patches/nowarnings.patch)
- name: Apply Patches
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
echo "------------ Patches for Remove Kernel Validation ------------"
find arch/arm64/configs/vendor/ -type f -name "*_defconfig" -exec sh -c 'export defconfig_path={} && sed "s@<device_defconfig>@$defconfig_path@g" patches/general_defconfig.patch | patch -p1 ' \;
patch -p1 < patches/module.patch
echo "------------ Patches for remove warning ----------------------"
patch -p1 < patches/nowarnings.patch
echo "------------ Patches for lxc and docker ----------------------"
patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch
- name: Download source boot image
if: env.BUILD_BOOT_IMG == 'true'
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/Lineage20_pstar_kernelsu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ jobs:
cd $GITHUB_WORKSPACE/kernel_workspace
git clone ${{ env.KERNEL_SOURCE }} -b ${{ env.KERNEL_SOURCE_BRANCH }} android-kernel --depth=1
- name: Apply Patches
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
echo "------------ Patches for Remove Kernel Validation ------------"
find arch/arm64/configs/vendor/ -type f -name "*_defconfig" -exec sh -c 'export defconfig_path={} && sed "s@<device_defconfig>@$defconfig_path@g" patches/general_defconfig.patch | patch -p1 ' \;
patch -p1 < patches/module.patch
echo "------------ Patches for remove warning ----------------------"
patch -p1 < patches/nowarnings.patch
# echo "------------ Patches for lxc and docker ----------------------"
# patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch
- name: Download source boot image
if: env.BUILD_BOOT_IMG == 'true'
run: |
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/Lineage20_pstar_kernelsu_docker_lxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,17 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
git clone ${{ env.KERNEL_SOURCE }} -b ${{ env.KERNEL_SOURCE_BRANCH }} android-kernel --depth=1
(cd android-kernel && patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch && patch -p1 < patches/nowarnings.patch)
- name: Apply Patches
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
echo "------------ Patches for Remove Kernel Validation ------------"
find arch/arm64/configs/vendor/ -type f -name "*_defconfig" -exec sh -c 'export defconfig_path={} && sed "s@<device_defconfig>@$defconfig_path@g" patches/general_defconfig.patch | patch -p1 ' \;
patch -p1 < patches/module.patch
echo "------------ Patches for remove warning ----------------------"
patch -p1 < patches/nowarnings.patch
echo "------------ Patches for lxc and docker ----------------------"
patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch
- name: Download source boot image
if: env.BUILD_BOOT_IMG == 'true'
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/Lineage20_pstar_kernelsu_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,17 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/kernel_workspace
git clone ${{ env.KERNEL_SOURCE }} -b ${{ env.KERNEL_SOURCE_BRANCH }} android-kernel --depth=1
(cd android-kernel && patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch && patch -p1 < patches/nowarnings.patch)
- name: Apply Patches
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
echo "------------ Patches for Remove Kernel Validation ------------"
find arch/arm64/configs/vendor/ -type f -name "*_defconfig" -exec sh -c 'export defconfig_path={} && sed "s@<device_defconfig>@$defconfig_path@g" patches/general_defconfig.patch | patch -p1 ' \;
patch -p1 < patches/module.patch
echo "------------ Patches for remove warning ----------------------"
patch -p1 < patches/nowarnings.patch
echo "------------ Patches for lxc and docker ----------------------"
patch -p1 < patches/cgroup.patch && patch -p1 < patches/xt_qtaguid.patch
- name: Download source boot image
if: env.BUILD_BOOT_IMG == 'true'
Expand Down

0 comments on commit 208eeea

Please sign in to comment.